Hm, just a thought passing by, isn't it an overcomplication? Too ambiguous what is "unit age" then. Maybe just a flag wether we reset age of a unit on conversion would be enough.
Reply To ihnatus
Hm, just a thought passing by, isn't it an overcomplication? Too ambiguous what is "unit age" then. Maybe just a flag wether we reset age of a unit on conversion would be enough.
I assumed that such a flag would be more complicated to implement (and maintain!) than straightforward storing both overall age and current form age, and latter gives also more functionality. Server has only one copy of the unit, not one FoW version per player, so increasing size of the unit structure by one integer shouldn't be a problem.
Maintain information when the unit was last transformed (upgradet or converted)
Inspired by danau in https://forum.freeciv.org/f/viewtopic.php?t=94545