Skip to content

Commit

Permalink
Merge pull request #3933 from IllianiCBT/CamOps_ClampUnitRating
Browse files Browse the repository at this point in the history
Clamped Unit Rating Mod for CamOps (redux)
  • Loading branch information
HammerGS authored Apr 6, 2024
2 parents 54ec53e + ef0ff24 commit 5590876
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MekHQ/src/mekhq/campaign/Campaign.java
Original file line number Diff line number Diff line change
Expand Up @@ -5571,7 +5571,7 @@ public int getUnitRatingMod() {
}
IUnitRating rating = getUnitRating();
return getCampaignOptions().getUnitRatingMethod().isFMMR() ? rating.getUnitRatingAsInteger()
: rating.getModifier();
: MathUtility.clamp(rating.getModifier(), IUnitRating.DRAGOON_F, IUnitRating.DRAGOON_ASTAR);
}

/**
Expand Down

0 comments on commit 5590876

Please sign in to comment.