Reformat and clean up reactor and base scripts

This commit is contained in:
P0nk
2021-09-09 23:38:09 +02:00
parent 3f43fe82d0
commit d9590078f5
231 changed files with 1192 additions and 1075 deletions

View File

@@ -1,17 +1,16 @@
function act() {
var eim = rm.getEventInstance();
if (eim != null) {
var react = rm.getReactor().getMap().getReactorByName("fullmoon");
var stage = parseInt(eim.getProperty("stage")) + 1;
var newStage = stage.toString();
eim.setProperty("stage", newStage);
react.forceHitReactor(react.getState() + 1);
if (eim.getProperty("stage").equals("6")) {
rm.mapMessage(6, "Protect the Moon Bunny!!!");
var map = eim.getMapInstance(rm.getReactor().getMap().getId());
map.allowSummonState(true);
map.spawnMonsterOnGroundBelow(9300061, -183, -433);
}
}
var eim = rm.getEventInstance();
if (eim != null) {
var react = rm.getReactor().getMap().getReactorByName("fullmoon");
var stage = parseInt(eim.getProperty("stage")) + 1;
var newStage = stage.toString();
eim.setProperty("stage", newStage);
react.forceHitReactor(react.getState() + 1);
if (eim.getProperty("stage").equals("6")) {
rm.mapMessage(6, "Protect the Moon Bunny!!!");
var map = eim.getMapInstance(rm.getReactor().getMap().getId());
map.allowSummonState(true);
map.spawnMonsterOnGroundBelow(9300061, -183, -433);
}
}
}