Пример #1
0
 public void setParms(String newParms) {
   parms = newParms;
   puddlepct = CMParms.getParmInt(parms, "puddlepct", 50);
   windsheer = CMParms.getParmInt(parms, "windsheer", 10);
   rainSlipChance = CMParms.getParmInt(parms, "rainslipchance", 1);
   snowSlipChance = CMParms.getParmInt(parms, "snowslipchance", 5);
   sleetSlipChance = CMParms.getParmInt(parms, "sleetslipchance", 10);
   freezeOverChance = CMParms.getParmInt(parms, "iceoverchance", 50);
   droughtFireChance = CMParms.getParmInt(parms, "droughtfirechance", 1);
   resetBotherTicks();
   resetDiseaseTicks();
   resetRustTicks();
   resetLightningTicks();
   resetRumbleTicks();
   resetGustTicks();
   resetTornadoTicks();
   resetHailTicks();
   resetDustTicks();
 }
Пример #2
0
 public void setParms(String newParms) {
   super.setParms(newParms);
   tickWait = CMParms.getParmInt(newParms, "delay", 0);
   tickDown = tickWait;
 }
Пример #3
0
 private void resetHailTicks() {
   hailDown = CMParms.getParmInt(parms, "hailticks", Climate.WEATHER_TICK_DOWN / 2);
 }
Пример #4
0
 private void resetDustTicks() {
   dustDown = CMParms.getParmInt(parms, "dustticks", 50);
 }
Пример #5
0
 private void resetGustTicks() {
   gustDown = CMParms.getParmInt(parms, "gustticks", Climate.WEATHER_TICK_DOWN);
 }
Пример #6
0
 private void resetTornadoTicks() {
   tornadoDown = CMParms.getParmInt(parms, "tornadoticks", Climate.WEATHER_TICK_DOWN * 10);
 }
Пример #7
0
 private void resetRumbleTicks() {
   rumbleDown = CMParms.getParmInt(parms, "rumbleticks", Climate.WEATHER_TICK_DOWN / 4);
 }
Пример #8
0
 private void resetLightningTicks() {
   lightningDown = CMParms.getParmInt(parms, "lightningticks", Climate.WEATHER_TICK_DOWN * 4);
 }
Пример #9
0
 private void resetRustTicks() {
   rustDown = CMParms.getParmInt(parms, "rustticks", 30);
 }
Пример #10
0
 private void resetDiseaseTicks() {
   diseaseDown = CMParms.getParmInt(parms, "diseaseticks", Climate.WEATHER_TICK_DOWN);
 }
Пример #11
0
 private void resetBotherTicks() {
   botherDown = CMParms.getParmInt(parms, "botherticks", Climate.WEATHER_TICK_DOWN / 3);
 }