jpcsupplies / Economy_mod

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

TODO: command to lookup the buy/sell price of a given item in the price table #30

Closed jpcsupplies closed 8 years ago

jpcsupplies commented 9 years ago

Need a command where you can lookup the price of an individual items buy and sell price, or optionally list the entire table itself in a mission window.

Could be expanded to act as a calculator - eg /value 20 gold ingot

responds something like: 20 gold is worth 2000 (selling 20 at 100 each)

plus perhaps a reference to the buy price too, since selling to the server will pay less than what it costs to buy or buy back. eg, miners sell gold to server at 95, but it costs 100 to buy (or buy back) that way the idea of it being for trading is maintained, as profit margins are enforced

jpcsupplies commented 8 years ago

Looks like this one is done!
Displaying entire table in a window is a possibility too, but i think is not necessary here; as the entire price table will likely be added under another command as part of the process of the buy/sell system.

midspace commented 8 years ago

I need to make sure the MarketStruct will serialize in a message so we can send a whole list through to a client, otherwise we'll have trouble displaying the right localized name for components.

jpcsupplies commented 8 years ago

How are we with this issue? Value command works as far as I can see; you wanted to cater for localized names better tho? Is it safe to close this issue? Worst case scenario log a localisation issue later?

jpcsupplies commented 8 years ago

Actualy we have a localisation issue open already at #40 closing this one as a duplicate.