EldrinFal
King
- Joined
- Mar 22, 2011
- Messages
- 926
Edit - the reason the granary is not being replaced is because it is not a 'real building' in the city. It's a free building given by the strategic grain reserve. The code doesn't cope with free buildings being replaced. I can fix this, but if I do it in the naive way (and doing it to avoid this will be quite hard) the consequence will be that it's gone for good in that city (so even if the modern granary got destroyed, the old style granary wouldn't magically re-appear just because you had a wonder that provides it for free). Only the city changing hands would cause re-evaluation of all the free stuff. This **MAY** be ok (it sorta makes sense in a real world model manner, since one imagines the old granary was bulldozed when the new one was built). However, its something I'd like feedback on. Making it work so that the free building gets replaced, yet still re-appears if the replacement gets destroyed is obviously also possible, but it's much harder to do.
For now I'm going to go ahead with my recommendation to make all the numbers multiplicative anyway, which reduces the significance of the granary stacking with modern granary, so we can defer changes for free building replacement (which way we decide to do it) until later.
Although more strict, I would suggest making the buildings a one shot deal. When you build a Wonder that grants a free building, it builds it in all of your current cities, and then it's done. Future cities built don't get it. Conquered cities built don't get it. If you sell it, upgrade, it's sabotaged, or in any other way you lose it, then you just have to build it again (or it's replacement). To me this seems a bit more realistic and at the same time, maybe it will take some overhead off the AI for having to monitor all the cities all the time.
Does this happen with all the different free buildings? The Egypt Myth one that provides free scribe building, the national Library Service that gives free libraries and so on.
There is a bunch of these that are designed to give you basic infrastructure in any new city you build by having gone to the expense of building the wonder or national wonder in the first place.
My thinking as well. And from what Koshling described, I would have to assume it applies to any and all free buildings granted from Wonders. So the fix is going to require some fixing by Koshling by how that works, not just changing of the particulars of Food Storing Buildings.