Ticket #48847

Store unit's transformation turn

오픈 날짜: 2023-10-16 00:50 마지막 업데이트: 2023-10-20 14:12

Reporter:
소유자:
Type:
Status:
Closed
Component:
MileStone:
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Fixed
File:
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
댓글 올리기

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 (None) to cazfi
  • Resolution Update from None to Accepted
2023-10-20 14:12 Updated by: cazfi
  • Status Update from Open to Closed
  • Resolution Update from Accepted to Fixed

Edit

Please login to add comment to this ticket » Login