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

@@ -7,10 +7,10 @@ function enter(pi) {
var chests = parseInt(eim.getProperty("openedChests"));
var boss;
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
if(chests == 0) boss = MapleLifeFactory.getMonster(9300119); //lord pirate
else if(chests == 1) boss = MapleLifeFactory.getMonster(9300105); //angry lord pirate
else boss = MapleLifeFactory.getMonster(9300106); //enraged lord pirate
const LifeFactory = Java.type('server.life.LifeFactory');
if(chests == 0) boss = LifeFactory.getMonster(9300119); //lord pirate
else if(chests == 1) boss = LifeFactory.getMonster(9300105); //angry lord pirate
else boss = LifeFactory.getMonster(9300106); //enraged lord pirate
boss.changeDifficulty(level, true);