待辦事項 #43778

Converting a unit reduces its veterancy

啟用日期: 2022-02-04 03:50 最後更新: 2022-02-07 07:07

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

細節

"Convert Unit" action reduces the unit's veterancy at @autoupgrade_veteran_loss@ levels. It is not documented, not logical and most probably is a bug.

Ticket History (3/15 Histories)

2022-02-04 03:50 Updated by: ihnatus
  • New Ticket "Converting a unit reduces its veterancy" created
2022-02-04 06:00 Updated by: ihnatus
  • File 3_0-no-convert-vet-loss.patch (File ID: 8438) is attached
2022-02-04 06:00 Updated by: ihnatus
評語

Patched. This ticked also serves as a base for #42666, taking unnecessary stuff out of transform_unit().

2022-02-04 06:02 Updated by: ihnatus
  • File 3_0-no-convert-vet-loss.patch (File ID: 8438) is deleted
2022-02-04 10:48 Updated by: alienvalkyrie
評語

Patches look good. Could you export them with commit information (e.g. via git format-patch)? Then we can apply the patches so that the commit will be correctly attributed to you.

idk if backports to 2.6

Given that there probably won't be any more 2.6 releases, this is unlikely to become relevant either way.

I'm not sure whether this should be included in 3.0.0 (i.e. pushed in between the release candidate, which is currently in the works, and the release proper, in a week or so), rather than being pushed back to 3.0.1 – it's not exactly a critical fix, doubly so given that no supplied rulesets currently use unit conversion. On the other hand, for any ruleset authors using both unit conversion and autoupgrade veteran loss, having to wait until 3.0.1 wouldn't be great either.

2022-02-04 13:09 Updated by: cazfi
評語

Reply To alienvalkyrie

it's not exactly a critical fix, doubly so given that no supplied rulesets currently use unit conversion.

Not a regression since 2.6.

2022-02-04 14:02 Updated by: cazfi
評語

(But if we are forced to make RC2 for some other reason, I would consider getting this in to it)

2022-02-05 02:32 Updated by: ihnatus
評語

Reply To alienvalkyrie

Patches look good. Could you export them with commit information (e.g. via git format-patch)? Then we can apply the patches so that the commit will be correctly attributed to you.

Ah yeah, have not comitted anything for so long that forgot how git works :)

2022-02-05 04:12 Updated by: alienvalkyrie
  • 負責人 Update from (無) to alienvalkyrie
  • 處理結果 Update from to Accepted
評語

Great – I'll merge these once the 3.0.0 release is done.

2022-02-06 06:12 Updated by: cazfi
評語

Reply To cazfi

... if we are forced to make RC2 for some other reason

We are.

2022-02-07 07:07 Updated by: alienvalkyrie
  • 狀態 Update from 開啟 to 關閉
  • 處理結果 Update from Accepted to 修正

Attachment File List

編輯

Please login to add comment to this ticket » 登入