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

@@ -244,16 +244,16 @@ function respawnStages(eim) {
var mapobj = eim.getMapInstance(926100401);
var mobcount = mapobj.countMonster(9300150);
var mobobj;
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point');
if(mobcount == 0) {
mobobj = MapleLifeFactory.getMonster(9300150);
mobobj = LifeFactory.getMonster(9300150);
mapobj.spawnMonsterOnGroundBelow(mobobj, new Point(-278, -126));
mobobj = MapleLifeFactory.getMonster(9300150);
mobobj = LifeFactory.getMonster(9300150);
mapobj.spawnMonsterOnGroundBelow(mobobj, new Point(-542, -126));
} else if(mobcount == 1) {
mobobj = MapleLifeFactory.getMonster(9300150);
mobobj = LifeFactory.getMonster(9300150);
mapobj.spawnMonsterOnGroundBelow(mobobj, new Point(-542, -126));
}
}
@@ -313,12 +313,12 @@ function yuleteAction(eim) {
mapobj.destroyNPC(2112000);
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point');
var mobobj1, mobobj2;
for(var i = 0; i < 5; i++) {
mobobj1 = MapleLifeFactory.getMonster(mob1);
mobobj2 = MapleLifeFactory.getMonster(mob2);
mobobj1 = LifeFactory.getMonster(mob1);
mobobj2 = LifeFactory.getMonster(mob2);
mapobj.spawnMonsterOnGroundBelow(mobobj1, new Point(-455, 135));
mapobj.spawnMonsterOnGroundBelow(mobobj2, new Point(-455, 135));
@@ -326,8 +326,8 @@ function yuleteAction(eim) {
for(var i = 0; i < 5; i++) {
mobobj1 = MapleLifeFactory.getMonster(mob1);
mobobj2 = MapleLifeFactory.getMonster(mob2);
mobobj1 = LifeFactory.getMonster(mob1);
mobobj2 = LifeFactory.getMonster(mob2);
mapobj.spawnMonsterOnGroundBelow(mobobj1, new Point(0, 135));
mapobj.spawnMonsterOnGroundBelow(mobobj2, new Point(0, 135));
@@ -335,8 +335,8 @@ function yuleteAction(eim) {
for(var i = 0; i < 5; i++) {
mobobj1 = MapleLifeFactory.getMonster(mob1);
mobobj2 = MapleLifeFactory.getMonster(mob2);
mobobj1 = LifeFactory.getMonster(mob1);
mobobj2 = LifeFactory.getMonster(mob2);
mapobj.spawnMonsterOnGroundBelow(mobobj1, new Point(360, 135));
mapobj.spawnMonsterOnGroundBelow(mobobj2, new Point(360, 135));