小兵战力加成上限

master_dev
grimm 2024-04-26 19:22:24 +08:00
parent 477f22e7c5
commit eeded71a3d
1 changed files with 5 additions and 1 deletions

View File

@ -78,7 +78,11 @@ public class SoldierLogic {
int attackUp = SSpecialConfig.getIntegerValue("SoldierStage_AttackUp");
long openTime = GameApplication.serverConfig.getCacheOpenTime();
int days = TimeUtils.getSoFarWentDays(openTime, TimeUtils.now());
return days * attackUp;
long up = (long) days * attackUp;
if (up >= Integer.MAX_VALUE){
return 10000;
}
return (int) Math.min(up, 10000);
}
/**