Nightinggale
Deity
- Joined
- Feb 2, 2009
- Messages
- 5,378
That would likely be the easiest solution. Something like a counter, which increases when the unit is out of move. If unit ends turn in a city, it resets and if it increases to a certain threshold, the unit dies.Maybe something similar to the old Civ2 air units system, where fighters and bombers crashed after so many turns out of city, and helicopters took damage per turn they were out of city.
Likewise at the end turn (for unit), it could take damage if plot isn't a city plot.
The most likely place to write this is in CvUnit::setMoves() and trigger on iNewValue == 0.