Convert reactor scripts to Graal

This commit is contained in:
P0nk
2021-04-17 20:03:24 +02:00
parent 984adc7885
commit 542a7b7fd2
10 changed files with 16 additions and 29 deletions

View File

@@ -20,12 +20,11 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
importPackage(Packages.server.life);
function spawnJrBoss(mobObj) {
mobObj.getMap().killMonster(mobObj.getId());
var spawnid = mobObj.getId() - 17;
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
var mob = MapleLifeFactory.getMonster(spawnid);
mobObj.getMap().spawnMonsterOnGroundBelow(mob, mobObj.getPosition());
}