修改bug
This commit is contained in:
parent
cd76249853
commit
ee75390dd6
|
@ -134,8 +134,10 @@ public class BattleRootTask extends AbtParentTask {
|
|||
teamLng = scenarioInfoOnTime.getTeam().getLng().toString();
|
||||
if(scenarioInfoOnTime.getPerson().getCurrent() >0) {
|
||||
//
|
||||
deathConsume = RandomUtil.getSecureRandom().nextInt(2) * intervalDuringTime;
|
||||
injuredConsume = RandomUtil.getSecureRandom().nextInt(3) * intervalDuringTime;
|
||||
int deathParam = RandomUtil.getSecureRandom().nextInt(6);
|
||||
int baseParam = deathParam/2;
|
||||
deathConsume = Long.valueOf(deathParam%baseParam) ;
|
||||
injuredConsume = Long.valueOf(RandomUtil.getSecureRandom().nextInt(3));
|
||||
ammunitionConsume = intervalDuringTime * (0.1D + RandomUtil.getSecureRandom().nextDouble());
|
||||
foodConsume = intervalDuringTime * FOOD_SPREED;
|
||||
waterConsume = intervalDuringTime * WATER_SPREED;
|
||||
|
@ -485,6 +487,4 @@ public class BattleRootTask extends AbtParentTask {
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user