Tíquete #48847

Store unit's transformation turn

: 2023-10-16 00:50 Última Atualização: 2023-10-20 14:12

Relator:
Dono:
Tipo:
Estado:
Fechado
Componente:
Marcos:
Prioridade:
5 - Medium
Gravidade:
5 - Medium
Resolução:
Fixed
Arquivo:
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 History (3/6 Histories)

2023-10-16 00:50 Updated by: cazfi
  • New Ticket "Store unit's transformation turn" created
2023-10-16 03:58 Updated by: ihnatus
Comentário

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 Updated by: cazfi
Comentário

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 Updated by: cazfi
  • Dono Update from (Nenhum) to cazfi
  • Resolução Update from Nenhum to Accepted
2023-10-20 14:12 Updated by: cazfi
  • Estado Update from Aberto to Fechado
  • Resolução Update from Accepted to Fixed

Editar

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login