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

Refactored Morale Calculations and Logging #5266

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

IllianiCBT
Copy link
Collaborator

Updated the morale calculations for scenario rolls and replaced conditional statements with switch cases to enhance code readability. Added detailed logging outputs to track morale checks and associated modifiers for better debugging and monitoring of morale changes.

Adjusted morale-based scenario generation modifiers for StratCon. The goal here is to make the player feel like they are being overrun when at higher morale levels.

Updated the morale calculations for scenario rolls and replaced conditional statements with switch cases to enhance code readability. Added detailed logging outputs to track morale checks and associated modifiers for better debugging and monitoring of morale changes.

Adjusted morale-based scenario generation modifiers for StratCon. The goal here is to make the player feel like they are being overrun when at higher morale levels.
@IllianiCBT IllianiCBT added the StratCon Bugs relating strictly to StratCon label Dec 1, 2024
@IllianiCBT IllianiCBT self-assigned this Dec 1, 2024
@codecov-commenter
Copy link

codecov-commenter commented Dec 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 10.46%. Comparing base (d1b53f6) to head (f1950a4).
Report is 11 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #5266      +/-   ##
============================================
- Coverage     10.47%   10.46%   -0.01%     
+ Complexity     6039     6032       -7     
============================================
  Files           959      959              
  Lines        135067   135089      +22     
  Branches      19650    19655       +5     
============================================
- Hits          14147    14140       -7     
- Misses       119569   119598      +29     
  Partials       1351     1351              

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

@HammerGS HammerGS merged commit f1404c2 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
StratCon Bugs relating strictly to StratCon
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants