修改bug

This commit is contained in:
wangwenhua 2025-09-22 14:23:58 +08:00
parent ee75390dd6
commit ffdbe33632

View File

@ -136,7 +136,11 @@ public class BattleRootTask extends AbtParentTask {
//
int deathParam = RandomUtil.getSecureRandom().nextInt(6);
int baseParam = deathParam/2;
if(deathParam !=0 ) {
deathConsume = Long.valueOf(deathParam % baseParam);
}else{
deathConsume =0L;
}
injuredConsume = Long.valueOf(RandomUtil.getSecureRandom().nextInt(3));
ammunitionConsume = intervalDuringTime * (0.1D + RandomUtil.getSecureRandom().nextDouble());
foodConsume = intervalDuringTime * FOOD_SPREED;