Fractal Softworks Forum

Please login or register.

Login with username, password and session length

Author Topic: [0.95a, RC-12] Buying goods during a shortage leads to decreased prices  (Read 400 times)

Vanshilar

  • Admiral
  • *****
  • Posts: 602
    • View Profile

Usually, when you buy goods from a market, as you buy more from the market, the cost of each successive good increases. This makes sense since there are fewer of them left to buy so the price increases.

But it seems like when the market is in a shortage, and it itself cannot import any of that good, as you buy more of that good, the price of each successive good actually decreases. So there might be a bug with how the code calculates prices in this situation.

This can be easily reproduced at beginning of game: at Ancyra, if you buy fuel (demand met), crew (demand met), or drugs (1 out of 3 demand met, so shortage of 2), then it behaves normally, with each successive good increasing in price as you buy more. But the cost of supplies, luxury goods, organs, domestic goods, organics, and food will all decrease as you buy more of them. For this latter set, what they all have in common is that there is a shortage, but there are 0 imports for them. 1 import seems to make the code function normally (based on drugs), but not when there are no imports at all for that good.
Logged