Skip to content

Commit

Permalink
Clamped unit rating mod for CamOps
Browse files Browse the repository at this point in the history
  • Loading branch information
IllianiCBT committed Mar 30, 2024
1 parent 2676968 commit d99da23
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 d99da23

Please sign in to comment.