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

Added initiativeMaxBonus to Campaign #5260

Merged
merged 2 commits into from
Dec 2, 2024
Merged

Conversation

DM0000
Copy link
Contributor

@DM0000 DM0000 commented Nov 30, 2024

Added initiativeMaxBonus to Campaign with XML support

added maxBonus check to initiativeIncrementer
added applyInitiativeBonus() to adjust initiativeMax and apply appropriate bonus
added initiative tests

Ref #4600

@@ -690,6 +690,8 @@
retVal.setCrimeRating(Integer.parseInt(wn.getTextContent()));
} else if (xn.equalsIgnoreCase("initiativeBonus")) {
retVal.setInitiativeBonus(Integer.parseInt(wn.getTextContent()));
} else if (xn.equalsIgnoreCase("initiativeMaxBonus")) {

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note

Invoking
Campaign.setFactionCode
should be avoided because it has been deprecated.
@codecov-commenter
Copy link

codecov-commenter commented Nov 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 10.48%. Comparing base (84e5f32) to head (d0cf662).
Report is 47 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #5260      +/-   ##
============================================
- Coverage     10.50%   10.48%   -0.02%     
- Complexity     6041     6052      +11     
============================================
  Files           957      959       +2     
  Lines        134738   135082     +344     
  Branches      19578    19653      +75     
============================================
+ Hits          14149    14170      +21     
- Misses       119234   119560     +326     
+ Partials       1355     1352       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@HammerGS HammerGS merged commit 00ae8a5 into MegaMek:master Dec 2, 2024
4 checks passed
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