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

Leadership Units & Support Point Scarcity Hot Fixes #5577

Merged
merged 7 commits into from
Jan 1, 2025

Conversation

IllianiCBT
Copy link
Collaborator

@IllianiCBT IllianiCBT commented Dec 31, 2024

The player was not correctly being shown the dialog to pick Leadership Units, or Frontline bonus units/minefields. Now they do.

Furthermore, it was found that Support Points were much scarcer than intended. Your Admin/Transport personnel will now roll three times each, at the start of the contract; and once every week (instead of every month).

Updated `StratconScenarioWizard` to support primary force-specific behavior and improved the flexibility of its UI configuration. Enhanced existing StratCon context menu commands and scenario state handling, ensuring proper state transitions and alignment with the updated wizard functionality. Also fixed array bounds handling in the skill generator to prevent potential errors.
Replaced monthly support point negotiations with weekly ones in StratCon. Updated corresponding logic, text properties, and documentation to reflect the shift to weekly intervals. This improves cadence and aligns with gameplay mechanics.
Removed unnecessary conditional check before setting up the leadership UI. This ensures consistent behavior and simplifies the code for readability and maintenance.
@IllianiCBT IllianiCBT added Bug StratCon Bugs relating strictly to StratCon labels Dec 31, 2024
@IllianiCBT IllianiCBT self-assigned this Dec 31, 2024
@IllianiCBT
Copy link
Collaborator Author

Oh and I also fixed a very rare out-of-bounds error that could occur if NPC pilots were generated with impossible skills.

@codecov-commenter
Copy link

codecov-commenter commented Dec 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 10.06%. Comparing base (c691d88) to head (5ae9aff).
Report is 18 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #5577      +/-   ##
============================================
+ Coverage     10.05%   10.06%   +0.01%     
- Complexity     6070     6079       +9     
============================================
  Files          1073     1073              
  Lines        141258   141260       +2     
  Branches      20602    20604       +2     
============================================
+ Hits          14203    14223      +20     
+ Misses       125680   125667      -13     
+ Partials       1375     1370       -5     

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

Updated evasion logic to handle commanders without Tactics skill and refined success conditions. Modified morale scaling multipliers to improve balance and consistency. Enhanced text resources to better reflect changes in evasion outcomes.
Updated the handling of command rights by merging HOUSE and LIAISON cases. This simplifies the code and ensures consistent behavior for these scenarios.
Enhanced the calculation of maximum support points during initial negotiations by tripling the required lances. This change ensures better alignment with negotiation dynamics and provides more flexibility in initial contract setups.
@IllianiCBT
Copy link
Collaborator Author

  • Reduced scenario intensity substantially.
  • Adjusted Turning Points on House command right contracts to be in-line with other command rights (i.e. 1in4 chance of a scenario being a Turning Point).
  • Removed auto-fail condition when reinforcements are attempting to evade an interception and their commander has no Tactics skill.
  • Updated reinforcement documentation to reflect this change.
  • Further improved initial Support Points (those determined at contract start).

@IllianiCBT IllianiCBT merged commit fea68c5 into MegaMek:master Jan 1, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug StratCon Bugs relating strictly to StratCon
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants