Skip to content

Conversation

@Saklad5
Copy link
Contributor

@Saklad5 Saklad5 commented May 9, 2023

Adding CASE is a Class D refit. Removing CASE is not, so simply changing it does not necessarily make a refit Class D.

In addition, the current designation of Class E is never applicable.

Adding CASE is a Class D refit. Removing CASE is not, so simply changing
it does not necessarily make a refit Class D.

In addition, the current designation of Class E is never applicable.
@Saklad5 Saklad5 marked this pull request as draft May 9, 2023 15:13
@codecov
Copy link

codecov bot commented May 9, 2023

Codecov Report

Patch coverage: 14.28% and no project coverage change.

Comparison is base (550ae37) 10.65% compared to head (995795d) 10.66%.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #3663   +/-   ##
=========================================
  Coverage     10.65%   10.66%           
- Complexity     5472     5473    +1     
=========================================
  Files           830      830           
  Lines        113500   113499    -1     
  Branches      17156    17155    -1     
=========================================
  Hits          12099    12099           
  Misses       100194   100194           
+ Partials       1207     1206    -1     
Impacted Files Coverage Δ
MekHQ/src/mekhq/campaign/parts/Refit.java 33.42% <14.28%> (+0.02%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

CASE refit penalties are only applied if no CASE of any sort was present
in the location previously. This means that Clan units never receive the
penalty, as they always have basic CASE integrated at minimum.
@Saklad5 Saklad5 marked this pull request as ready for review May 9, 2023 16:01
@Saklad5
Copy link
Contributor Author

Saklad5 commented May 9, 2023

I briefly tested this by opening a campaign save: it seems to work as expected.

  • Adding CASE II to Clan BattleMechs is Class B (assuming a slot was removed too)
  • Adding CASE II to IS BattleMechs that previously had CASE is Class B (always, since it replaces the CASE)
  • Adding CASE or CASE II to IS BattleMechs in a location that previously had neither is Class D
  • Removing CASE from IS BattleMechs is Class A

I only tested 'Mechs, admittedly, but given how CASE works in other units that shouldn't be relevant.

@NickAragua NickAragua merged commit 1ff64f2 into MegaMek:master May 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants