Skip to content

Commit

Permalink
reduce sensor range
Browse files Browse the repository at this point in the history
  • Loading branch information
kuronekochomusuke committed Oct 26, 2024
1 parent 4ca83fe commit 325dd2b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions megamek/src/megamek/common/Sensor.java
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,12 @@ public int adjustRange(int range, Game game, LosEffects los) {

if ((type != TYPE_MEK_SEISMIC) && (type != TYPE_VEE_SEISMIC)) {
PlanetaryConditions conditions = game.getPlanetaryConditions();
if (conditions.getEMI().isEMI()) {
if (conditions.isEMI()) {
range -= 4;
}
// TODO: add lightning
if (conditions.getWeather().isLightningStorm()) {
range -= 1;
}
}

if ((type == TYPE_MEK_RADAR) || (type == TYPE_VEE_RADAR)
Expand Down

0 comments on commit 325dd2b

Please sign in to comment.