Skip to content

Fixed Eagle Eyes rolls for Advanced Scouting#8751

Closed
heckindoc wants to merge 3 commits intoMegaMek:mainfrom
heckindoc:main
Closed

Fixed Eagle Eyes rolls for Advanced Scouting#8751
heckindoc wants to merge 3 commits intoMegaMek:mainfrom
heckindoc:main

Conversation

@heckindoc
Copy link
Contributor

There was a missing negative sign, I added the negative and now eagle eyes does what it is supposed to do

@heckindoc heckindoc requested a review from a team as a code owner February 18, 2026 01:28
… more difficult

Ammended because I missed one instance of eagle eyes (for vehicles. oops)
@codecov
Copy link

codecov bot commented Feb 18, 2026

Codecov Report

❌ Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 13.13%. Comparing base (404ea62) to head (d4d212e).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
.../mekhq/campaign/stratCon/StratConRulesManager.java 0.00% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #8751      +/-   ##
============================================
- Coverage     13.14%   13.13%   -0.01%     
+ Complexity     7828     7826       -2     
============================================
  Files          1306     1306              
  Lines        169092   169092              
  Branches      25422    25422              
============================================
- Hits          22220    22208      -12     
- Misses       144732   144743      +11     
- Partials       2140     2141       +1     

☔ 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.

Comment on lines 1813 to 1816
options.booleanOption(OptionsConstants.MISC_EAGLE_EYES) ?
1 : 0;
-1 : 0;

int scoutSkillLevel = (scoutSkill == null) ? -1 : scoutSkill.getTotalSkillLevel(skillModifierData);
Copy link
Member

Choose a reason for hiding this comment

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

For this specific usage, is lower better or worse & should eagle eyes be a bonus or penalty?

The other usage is a TN, lower is better, all good.

This usage looks like lower is worse - this value will be added to scoutSkillLevel, which defaults to -1 if the skill isn't found.

I believe the eagle eyes value here should still be positive if it's meant to be a bonus.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Eagle Eyes functions in the same fashion as a beagle probe in the setting of Advanced Scouting, decreasing the TN by 1.

In testing on 50.11, Eagle Eyes increased the TN by 1 and when made negative and retested in the 50.12 environment Eagle Eyes then had the intended effect of reducing the TN by 1.

Copy link
Member

@psikomonkie psikomonkie Feb 18, 2026

Choose a reason for hiding this comment

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

Changing "1" to "-1" for the TN is correct, I agree.

I don't think this specific usage is for a TN though.

EDIT: This is for determining the best scout. It calculates their effective skill level, a positive value, and returns whoever has the highest value. This change will cause persons with Eagle Eye to be considered worse than they are.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll try to take another look at it tonight and test it further and/or see if I can find a different solution. Thank you!

@heckindoc
Copy link
Contributor Author

I'm going to close this PR. The problem is happening somewhere else. I'll keep looking and when I get a solution I'll submit another PR. Thank you.

@heckindoc heckindoc closed this Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments