jpcsupplies / Economy_mod

Basic Economy System for Space Engineers
13 stars 12 forks source link

Reactive Pricing possible decision #200

Open wujekmaster opened 3 years ago

wujekmaster commented 3 years ago

In your code you use compliance check of two parameters: pricepoint from EconPriceScale.xml, and quantity from EconomyData.xml. and then set price with coefficient pricechange.... so that makes the problem that iron have the same price scaling like platina. The way to change it i have a dicision. But im realy lost in your code, and afraid to break it. You need to make a new xml with Stock prices and quantity, and then make coefficient ( Kq in exmp) Kq = (quantity(market) / quantity(stock) ) 1000 so you do not need to change anything in EconPriceScale.xml and make check if the Kq >= (<=) pricepoint then price=price ..........

wujekmaster commented 3 years ago

Sorry for my bad english, i hope you will understand my logic