예제 #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);
 }