8000 Fix: #6998 Fixed Tactics Bonus to No Longer Use the Tactic Number as a Bonus by IllianiBird · Pull Request #6999 · MegaMek/mekhq · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix: #6998 Fixed Tactics Bonus to No Longer Use the Tactic Number as a Bonus #6999

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

Merged
merged 2 commits into from
May 14, 2025

Conversation

IllianiBird
Copy link
Collaborator
@IllianiBird IllianiBird commented May 14, 2025

Fix #6998
Related Issue MegaMek/megamek#7054

The initiative bonus from Tactics, when that campaign option was enabled, was incorrectly using the skill target number as a modifier and not the combined skill levels, bonus, and aging modifiers.

I also fixed a bug where Tactics was not being applied to the unit if Individual Initiative Tactics Modifiers was enabled.

Finally I fixed a third bug where Commander Initiative wasn't being enabled in MegaMek when the above mentioned option was enabled.

There is a forth related bug, but that's a wholly MegaMek issue and is being handled by Sleet. But basically if individual initiative was enabled we are still using the highest initiative from all units under a player's control not just the modifiers from the specific unit making the roll.

@IllianiBird IllianiBird self-assigned this May 14, 2025
@IllianiBird IllianiBird requested a review from a team as a code owner May 14, 2025 17:01
@IllianiBird IllianiBird added Bug Severity: Critical Issues described as critical as per the new issue form labels May 14, 2025
Copy link
codecov bot commented May 14, 2025

Codecov Report

Attention: Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.

Project coverage is 12.04%. Comparing base (c24b3e0) to head (721f292).
Report is 92 commits behind head on master.

Files with missing lines Patch % Lines
MekHQ/src/mekhq/campaign/unit/Unit.java 0.00% 1 Missing and 2 partials ⚠️
MekHQ/src/mekhq/campaign/CampaignOptions.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##             master    #6999   +/-   ##
=========================================
  Coverage     12.03%   12.04%           
- Complexity     6852     6854    +2     
=========================================
  Files          1101     1101           
  Lines        141438   141438           
  Branches      21917    21919    +2     
=========================================
+ Hits          17026    17033    +7     
+ Misses       122597   122579   -18     
- Partials       1815     1826   +11     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Collaborator
@Sleet01 Sleet01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Sleet01 Sleet01 merged commit 457e638 into MegaMek:master May 14, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Severity: Critical Issues described as critical as per the new issue form
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Issue] 50.06 Nightly - Inititaive Bonus seems off
2 participants
0