Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Destroy Infantry field guns and artillery with trooper damage #3935

Merged
merged 9 commits into from
Oct 14, 2022

Conversation

SJuliez
Copy link
Member

@SJuliez SJuliez commented Oct 13, 2022

TO:AUE p.123 notes that field guns count as destroyed when they can no longer be crewed by the platoon. Despite the different rules text, I assume this extends to field arty. Per discussion with Hammer, the rules team says they're dead even for purposes of MHQ. Therefore with this PR field guns and arty get destroyed with trooper damage. As a result, some code that dealt with trooper damage and crew requirements is removed (FireControl and AttackAction).

@codecov
Copy link

codecov bot commented Oct 13, 2022

Codecov Report

Base: 23.56% // Head: 23.56% // Decreases project coverage by -0.00% ⚠️

Coverage data is based on head (a183457) compared to base (1390a08).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #3935      +/-   ##
============================================
- Coverage     23.56%   23.56%   -0.01%     
  Complexity     4810     4810              
============================================
  Files          2212     2212              
  Lines        243039   243049      +10     
  Branches      45484    45480       -4     
============================================
- Hits          57264    57263       -1     
- Misses       184316   184327      +11     
  Partials       1459     1459              
Impacted Files Coverage Δ
...k/src/megamek/client/bot/princess/FireControl.java 50.46% <0.00%> (+0.03%) ⬆️
.../src/megamek/client/ui/swing/UnitEditorDialog.java 0.00% <0.00%> (ø)
megamek/src/megamek/common/BattleArmor.java 6.12% <0.00%> (-0.02%) ⬇️
megamek/src/megamek/common/Entity.java 12.29% <ø> (ø)
megamek/src/megamek/common/Infantry.java 2.04% <0.00%> (-0.04%) ⬇️
megamek/src/megamek/common/MULParser.java 0.00% <0.00%> (ø)
megamek/src/megamek/common/Targetable.java 9.09% <ø> (ø)
...src/megamek/common/actions/WeaponAttackAction.java 0.00% <ø> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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

@pheonixstorm
Copy link
Collaborator

While this is open I have a question. How does this affect the unit after it is imported back into HQ? MM sends back the crew with injuries and destroyed field guns. Will those guns need to be repaired, replaced, or just have the dead crew replaced to be functional?

@SJuliez SJuliez merged commit ff4b5a8 into MegaMek:master Oct 14, 2022
@SJuliez SJuliez deleted the Infantry_FieldGuns branch January 6, 2023 09:27
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