Ticket #48847

Store unit's transformation turn

Eröffnet am: 2023-10-16 00:50 Letztes Update: 2023-10-20 14:12

Auswertung:
Verantwortlicher:
Typ:
Status:
Geschlossen
Komponente:
Meilenstein:
Priorität:
5 - Mittel
Schweregrad:
5 - Mittel
Lösung:
Gefixt
Datei:
1

Details

Maintain information when the unit was last transformed (upgradet or converted)

Inspired by danau in https://forum.freeciv.org/f/viewtopic.php?t=94545

Ticket-Verlauf (3/6 Historien)

2023-10-16 00:50 Aktualisiert von: cazfi
  • New Ticket "Store unit's transformation turn" created
2023-10-16 03:58 Aktualisiert von: ihnatus
Kommentar

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.

2023-10-16 04:18 Aktualisiert von: cazfi
Kommentar

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.

2023-10-16 07:52 Aktualisiert von: cazfi
  • Verantwortlicher Update from (Keine) to cazfi
  • Lösung Update from Keine to Accepted
2023-10-20 14:12 Aktualisiert von: cazfi
  • Status Update from Offen to Geschlossen
  • Lösung Update from Accepted to Gefixt

Bearbeiten

Please login to add comment to this ticket » Anmelden