Skip to content

Commit

Permalink
Merge pull request #4567 from kuronekochomusuke/sensorGeekSensorRange
Browse files Browse the repository at this point in the history
apply sensor geek modifier to check when calculating sensor ranges for display
  • Loading branch information
SJuliez authored Jun 26, 2023
2 parents 0d5d49d + 9acb158 commit e8f109a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion megamek/src/megamek/common/Compute.java
Original file line number Diff line number Diff line change
Expand Up @@ -4969,7 +4969,13 @@ public static SensorRangeHelper getSensorRanges(Game game, Entity e) {
if (null == e.getActiveSensor()) {
return null;
}
int bracket = Compute.getSensorBracket(e.getSensorCheck());

int check = e.getSensorCheck();
if ((null != e.getCrew()) && e.hasAbility(OptionsConstants.UNOFF_SENSOR_GEEK)) {
check -= 2;
}

int bracket = Compute.getSensorBracket(check);
if (e.isSpaceborne()) {
bracket = Compute.getSensorBracket(7);
}
Expand Down

0 comments on commit e8f109a

Please sign in to comment.