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

Corrected Missing Fatigue Option Check During Scenario Resolution & for StratCon Actions #4405

Merged
merged 3 commits into from
Jul 14, 2024

Conversation

IllianiCBT
Copy link
Collaborator

@IllianiCBT IllianiCBT commented Jul 13, 2024

The code in 'ResolveScenarioTracker.java' was updated to check whether fatigue is enabled in campaign options prior to triggering Fatigue.processFatigueActions(). This bug was replicated in StratconRulesManager so we've fixed it there too.

The code in 'ResolveScenarioTracker.java' was updated to include a check whether the fatigue feature is enabled in the campaign options. If the fatigue feature is enabled, fatigue actions will be processed for the person object involved.
@IllianiCBT IllianiCBT self-assigned this Jul 13, 2024
@IllianiCBT IllianiCBT changed the title Corrected Missing Fatigue Option Check During Scenario Resolution Corrected Missing Fatigue Option Check During Scenario Resolution & for StratCon Actions Jul 13, 2024
The logic for calculating player fatigue was streamlined. This involved removing an unnecessary check in 'ResolveScenarioTracker.java', and moving a fatigue processing condition into an 'if' statement in 'StratconRulesManager.java' to ensure fatigue actions are only processed when the fatigue option is in use.
@codecov-commenter
Copy link

codecov-commenter commented Jul 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 10.27%. Comparing base (f7bd31c) to head (009c0ed).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #4405   +/-   ##
=========================================
  Coverage     10.27%   10.27%           
  Complexity     5811     5811           
=========================================
  Files           925      925           
  Lines        126031   126025    -6     
  Branches      18627    18628    +1     
=========================================
  Hits          12945    12945           
+ Misses       111811   111805    -6     
  Partials       1275     1275           

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

@IllianiCBT IllianiCBT merged commit 438abff into MegaMek:master Jul 14, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants