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

@@ -26,13 +26,13 @@
*
*/
function act(){
var startId = 9400523;
var mobObj, mapObj = rm.getMap();
function act() {
var startId = 9400523;
var mobObj, mapObj = rm.getMap();
const LifeFactory = Java.type('server.life.LifeFactory');
for(var i = 0; i < 7; i++) {
mobObj = LifeFactory.getMonster(startId + Math.floor(Math.random() * 3));
mapObj.spawnMonsterOnGroundBelow(mobObj, rm.getReactor().getPosition());
}
const LifeFactory = Java.type('server.life.LifeFactory');
for (var i = 0; i < 7; i++) {
mobObj = LifeFactory.getMonster(startId + Math.floor(Math.random() * 3));
mapObj.spawnMonsterOnGroundBelow(mobObj, rm.getReactor().getPosition());
}
}