public interface IWare extends IAmountable, ITradable
MAX: the maximum price for the item if it is not available in the market.
Here the function has a glitch for the buy price: If no item is available
it cannot be sold and the price is therefore 0 (infinity would be logical correct
but is not very understandable in the game context).MIN: the minimal price of the item if more than SATURATION items
are available in the market. As more items are available in the market the price approaches
this value asymptoticly.SATURATION: amount of items when the the need is fullfilled. If there are more items
available in the market than needed all have the MIN price. This is a further
simplification because the price normally drops further if there are much more items available.
The curve would bee leveling out at SATURATION and then dropping further.ABS_MIN: the absolut minimum is the minimal sell price at SATURATION.(MAX-MIN)*(MIN+1) --------------------- + ABS_MIN e^(x*15/(SATURATION*2))+MIN
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxBuyPriceModerate()
Retrieve the moderate max buy price of the ware.
|
int |
getMaxBuyPriceOffensive()
Retrieve the offensive max buy price of the ware.
|
int |
getMaxBuyPriceRabiat()
Retrieve the rabiat max buy price for the ware.
|
short |
getSizeAsBarrels()
Retrieve the size of the ware converted into the smallest size unit (barrels)
|
boolean |
isBarrelSizedWare()
Check if the ware size is barrel or not.
|
getMarketSaturationForBuying, getMarketSaturationForSelling, getMaxValueBuy, getMaxValueSell, getMinValueBuy, getMinValueSell, nameshort getSizeAsBarrels()
boolean isBarrelSizedWare()
int getMaxBuyPriceModerate()
int getMaxBuyPriceOffensive()
int getMaxBuyPriceRabiat()
Copyright © 2011-2016 Sahits GmbH. All Rights Reserved.