修改bug
This commit is contained in:
parent
ee75390dd6
commit
ffdbe33632
|
@ -136,7 +136,11 @@ public class BattleRootTask extends AbtParentTask {
|
||||||
//
|
//
|
||||||
int deathParam = RandomUtil.getSecureRandom().nextInt(6);
|
int deathParam = RandomUtil.getSecureRandom().nextInt(6);
|
||||||
int baseParam = deathParam/2;
|
int baseParam = deathParam/2;
|
||||||
deathConsume = Long.valueOf(deathParam%baseParam) ;
|
if(deathParam !=0 ) {
|
||||||
|
deathConsume = Long.valueOf(deathParam % baseParam);
|
||||||
|
}else{
|
||||||
|
deathConsume =0L;
|
||||||
|
}
|
||||||
injuredConsume = Long.valueOf(RandomUtil.getSecureRandom().nextInt(3));
|
injuredConsume = Long.valueOf(RandomUtil.getSecureRandom().nextInt(3));
|
||||||
ammunitionConsume = intervalDuringTime * (0.1D + RandomUtil.getSecureRandom().nextDouble());
|
ammunitionConsume = intervalDuringTime * (0.1D + RandomUtil.getSecureRandom().nextDouble());
|
||||||
foodConsume = intervalDuringTime * FOOD_SPREED;
|
foodConsume = intervalDuringTime * FOOD_SPREED;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user