I could have sworn that changes using this (and similar) methods did not persist, i.e., went away on save/exit/reload. But some testing I just did shows that this one is persisting. Did something change or was I wrong in my previous understanding?
AFAIK all game data should persist without any effort on your part. It's only your variables you have to account for. After all, otherwise no game would ever be reloadable without huge amounts of save and restore code.
Perhaps I'm confusing this with other changes that don't persist (unit:SetBaseCombatStrength???). I agree these all should persist, but I'm pretty sure that's not the case. I can work with it either way, but only if I know.
All of the BaseYieldRates for a city are persisted - see CvCity.cpp - and apart from religion, all that code has been there since day/version 1 of the save format
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.