Closed meszaros-lajos-gyorgy closed 11 months ago
Small note: this also alters the save format and makes these changes incompatible with vanilla arx: https://github.com/arx-insanity/ArxLibertatis/blob/master/src/scene/SaveFormat.h#L893
buying an item from a shop: SecondInventoryHud::dragEntity()
-> calls ARX_INTERACTIVE_GetPrice()
selling an item to a shop: SecondaryInventoryHud::dropEntity
-> calls ARX_INTERACTIVE_GetSellValue()
The changes so far that are important:
^buyprice
and ^sellprice
global script variables (float)^price
global script variable is kept as is for compatibility, returns the buyPrice of an itemsetprice
command sets both buy and sell prices with the same value (still expects one numeric argument)setbuyprice
and setsellprice
to allow setting buy and sell prices separatelyone more todo left: need to look at all the places where ->buyPrice
is being set and need to check if ->sellPrice
also needs to be set
in review
merged into insanity branch