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 Campaign Option to Automate Retention Bonus Payments Based on a Threshold #4391

Merged
merged 3 commits into from
Jul 14, 2024

Conversation

IllianiCBT
Copy link
Collaborator

Currently, we have a campaign option that if enabled automatically sets all turnover retention bonus payouts to true by default. This lacked nuance and usability, so I added a threshold option.

Now bonus payouts will only default to true if the relevant campaign option is enabled and if the individual's turnover target number meets or exceeds a threshold set in campaign options.

The logic for bonus payout in the RetirementTableModel was updated to consider whether the turnover target number meets a given threshold. A new field for setting this threshold was added in the CampaignOptions class and its related GUI components.
@IllianiCBT IllianiCBT added Personnel Personnel-related Issues UX User experience labels Jul 13, 2024
@IllianiCBT IllianiCBT self-assigned this Jul 13, 2024
@codecov-commenter
Copy link

codecov-commenter commented Jul 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 10.27%. Comparing base (1b3b3e6) to head (1c69c93).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #4391   +/-   ##
=========================================
  Coverage     10.26%   10.27%           
- Complexity     5809     5811    +2     
=========================================
  Files           925      925           
  Lines        125992   126022   +30     
  Branches      18618    18623    +5     
=========================================
+ Hits          12939    12944    +5     
- Misses       111777   111803   +26     
+ Partials       1276     1275    -1     

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

The existing description for the retention bonuses option in the campaign options dialog was modified. "Pay Bonuses by Default" was replaced with "Automate Retention Bonuses" for clearer understanding.
@IllianiCBT IllianiCBT merged commit da91fdf 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
Personnel Personnel-related Issues UX User experience
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants