添加涡轮的rpm上限

This commit is contained in:
17146 2025-05-07 20:10:37 +08:00 committed by Light_Quanta
parent 660d7a3557
commit 8da89edaf6
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959

View file

@ -12,6 +12,6 @@ public class TurboCharger extends Perk {
@Override
public int getModifiedCustomRPM(int rpm, GunData data, PerkInstance instance) {
return rpm + 5 + 3 * instance.level();
return Math.min(rpm + 5 + 3 * instance.level(), 1200);
}
}