jpcsupplies / Economy_mod

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

BUG: Sell command multiplies qty by qty ? #51

Closed jpcsupplies closed 8 years ago

jpcsupplies commented 8 years ago

just doing some test sells - notice something odd just tracking it down if i sell 10 iron ingot at a unit price of 1 (ie /value iron ingot = unit of 1) ie /sell 10 iron ingot it sells 10 for a unit price of 10 giving me 100 ?

Partially cause appears to be related somehow to having old data in the data and config XML files..

npc market seems to be getting stored in data file and config file at once..

if we are pulling prices from config and applying qty to data that should be fine.. just deleting my test data and testing that scenario now

ok when deleted i get this result: /sell 10000 gravel = 17 million ? should be 1700 ?