Ticket #43778

Converting a unit reduces its veterancy

오픈 날짜: 2022-02-04 03:50 마지막 업데이트: 2022-02-07 07:07

Reporter:
소유자:
Type:
Status:
Closed
Component:
MileStone:
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Fixed
File:
4

Details

"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 (None) to alienvalkyrie
  • Resolution Update from None 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
  • Status Update from Open to Closed
  • Resolution Update from Accepted to Fixed

Attachment File List

Edit

Please login to add comment to this ticket » Login