jpcsupplies / Economy_mod

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

[suggestion] ore destruction in NPC market #156

Open jpcsupplies opened 7 years ago

jpcsupplies commented 7 years ago

Stone and gravel is essentially a junk ore, only reason to support it at the NPC market is as a way for players to dispose of objects without leaving them floating in the world.

We should expand on this, and perhaps automatically convert a portion of stored junk ores (maybe make it a per-item flag) back into NPC bank funds and remove them from the market.

jpcsupplies commented 7 years ago
  1. Logic:

  2. Have a timer (eg 15-30 minutes or use the autosave time) that on ores designated as junk(read stone/gravel/default tools etc) checks if it is above the reactive pricing "just right" qty; or the default starting qty.

  3. If it is then randomly (pick a number between 1 and 1000, minus the difference between current stock (if random<onhand) and "just right" qty)

  4. Now "sell" (read convert back into NPC funds) the chosen random qty of the ore.