Reformat and clean up map scripts

This commit is contained in:
P0nk
2021-09-09 23:32:43 +02:00
parent f76b9954a7
commit 0c1545f81d
87 changed files with 473 additions and 466 deletions

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* /*
*@Author: Moogra, Traitor, Ronan *@Author: Moogra, Traitor, Ronan
*@Map(s): All Dojo fighting maps *@Map(s): All Dojo fighting maps

View File

@@ -13,8 +13,9 @@ function start(ms) {
} }
function spawnMob(x, y, id, map) { function spawnMob(x, y, id, map) {
if(map.getMonsterById(id) != null) if (map.getMonsterById(id) != null) {
return; return;
}
const LifeFactory = Java.type('server.life.LifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point'); const Point = Java.type('java.awt.Point');

View File

@@ -13,8 +13,9 @@ function start(ms) {
} }
function spawnMob(x, y, id, map) { function spawnMob(x, y, id, map) {
if(map.getMonsterById(id) != null) if (map.getMonsterById(id) != null) {
return; return;
}
const LifeFactory = Java.type('server.life.LifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point'); const Point = Java.type('java.awt.Point');

View File

@@ -13,8 +13,9 @@ function start(ms) {
} }
function spawnMob(x, y, id, map) { function spawnMob(x, y, id, map) {
if(map.getMonsterById(id) != null) if (map.getMonsterById(id) != null) {
return; return;
}
const LifeFactory = Java.type('server.life.LifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point'); const Point = Java.type('java.awt.Point');

View File

@@ -13,8 +13,9 @@ function start(ms) {
} }
function spawnMob(x, y, id, map) { function spawnMob(x, y, id, map) {
if(map.getMonsterById(id) != null) if (map.getMonsterById(id) != null) {
return; return;
}
const LifeFactory = Java.type('server.life.LifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point'); const Point = Java.type('java.awt.Point');

View File

@@ -13,8 +13,9 @@ function start(ms) {
} }
function spawnMob(x, y, id, map) { function spawnMob(x, y, id, map) {
if(map.getMonsterById(id) != null) if (map.getMonsterById(id) != null) {
return; return;
}
const LifeFactory = Java.type('server.life.LifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point'); const Point = Java.type('java.awt.Point');

View File

@@ -1,5 +1,5 @@
function getInactiveReactors(map) { function getInactiveReactors(map) {
var reactors = new Array(); var reactors = [];
var iter = map.getReactors().iterator(); var iter = map.getReactors().iterator();
while (iter.hasNext()) { while (iter.hasNext()) {

View File

@@ -19,6 +19,7 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* /*
*@Author: Moogra, Traitor, Ronan *@Author: Moogra, Traitor, Ronan
*@Map(s): All Dojo fighting maps *@Map(s): All Dojo fighting maps