待辦事項 #48847

Store unit's transformation turn

啟用日期: 2023-10-16 00:50 最後更新: 2023-10-20 14:12

回報者:
負責人:
類型:
狀態:
關閉
元件:
里程碑:
優先權:
5 - 中
嚴重程度:
5 - 中
處理結果:
修正
檔案:
1

細節

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
評語

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
評語

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
  • 負責人 Update from (無) to cazfi
  • 處理結果 Update from to Accepted
2023-10-20 14:12 Updated by: cazfi
  • 狀態 Update from 開啟 to 關閉
  • 處理結果 Update from Accepted to 修正

編輯

Please login to add comment to this ticket » 登入