BUG: Upgrade cost wrong when triggering Eureka for Machinery

kaspergm

Deity
Joined
Aug 19, 2012
Messages
5,827
Ok, this is a really marginal bug, but I'll try to explain it: I have a game with 2 archers and 1 slinger. I was playing China (not sure if that makes any difference, but might have, since of special eureka mechanism). I want to upgrade the last slinger to an archer, which should cost 30 gold, and I have 40 gold in my treasury. I'm about 45 % through researching machinery, which has as the eureka to own 3 archers. When I upgrade the slinger to an archer, it triggers the eureka for machinery. However, here comes the bug: It charges me something like 230 gold for the upgrade (probably the cost directly from slinger into crossbowman), leaving me at -160 gold and major bankruptcy. I even think the slinger only became an archer and not a crossbowman!

Loading the game a couple of turns before - so that I'm only at ~30 % of machinery, meaning I won't go over by getting the third archer - and then upgrading works properly and only charges 30 gold. So it's definitely linked to the fact that the upgrade triggers the technology and hence allows for the additional upgrade (so logic seems to check things in the wrong order).

Sadly, I don't have a save game of this, but it should be fairly easy to reproduce in a worldbuilder.
 
Back
Top Bottom