Rename and clean up MapleLifeFactory

This commit is contained in:
P0nk
2021-09-09 22:04:57 +02:00
parent 1f349d1dae
commit 38c700ca48
113 changed files with 309 additions and 308 deletions

View File

@@ -129,7 +129,7 @@ function insidePqAction(mode, type, selection) {
}
}
} else if(status == 1) {
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point');
if(stg == -1) {
@@ -140,7 +140,7 @@ function insidePqAction(mode, type, selection) {
}
mapobj.allowSummonState(true);
var snowman = MapleLifeFactory.getMonster(9400317 + (5 * difficulty));
var snowman = LifeFactory.getMonster(9400317 + (5 * difficulty));
mapobj.spawnMonsterOnGroundBelow(snowman, new Point(-180, 15));
eim.setIntProperty("snowmanLevel", 1);
eim.dropMessage(5, "The snowman appeared on the field! Protect it using all means necessary!");
@@ -158,7 +158,7 @@ function insidePqAction(mode, type, selection) {
mapobj.broadcastStringMessage(5, "As the snowman grows to it's prime, the Scrooge appears!");
eim.getEm().getIv().invokeFunction("snowmanHeal", eim);
var boss = MapleLifeFactory.getMonster(9400318 + difficulty);
var boss = LifeFactory.getMonster(9400318 + difficulty);
mapobj.spawnMonsterOnGroundBelow(boss, new Point(-180, 15));
eim.setProperty("spawnedBoss", "true");