Skip to content

Converted Honor Rating into an Enum#5962

Merged
HammerGS merged 2 commits intoMegaMek:masterfrom
IllianiBird:honorRatingEnum
Feb 6, 2025
Merged

Converted Honor Rating into an Enum#5962
HammerGS merged 2 commits intoMegaMek:masterfrom
IllianiBird:honorRatingEnum

Conversation

@IllianiBird
Copy link
Collaborator

  • Replaced hardcoded honor rating logic with an HonorRating enum for better readability and maintainability.
  • Moved honor rating computation to the Faction class, simplifying related code in AtBDynamicScenarioFactory.

- Replaced hardcoded honor rating logic with an `HonorRating` enum for better readability and maintainability.
- Moved honor rating computation to the `Faction` class, simplifying related code in `AtBDynamicScenarioFactory`.
@IllianiBird IllianiBird self-assigned this Feb 3, 2025
Updated copyright headers in HonorRating.java and Faction.java to reflect the current years of 2025. Ensured consistency with licensing and copyright information across the files.
@codecov-commenter
Copy link

codecov-commenter commented Feb 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 10.33%. Comparing base (cd323b0) to head (d67c293).
Report is 79 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #5962      +/-   ##
============================================
- Coverage     10.35%   10.33%   -0.03%     
+ Complexity     6171     6153      -18     
============================================
  Files          1039     1040       +1     
  Lines        139359   139364       +5     
  Branches      20639    20637       -2     
============================================
- Hits          14437    14407      -30     
- Misses       123493   123521      +28     
- Partials       1429     1436       +7     

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

@HammerGS HammerGS merged commit 1743bdd into MegaMek:master Feb 6, 2025
4 checks passed
@IllianiBird IllianiBird deleted the honorRatingEnum branch March 23, 2025 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants