Reformat and clean up map scripts
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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');
|
||||||
|
|||||||
@@ -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');
|
||||||
|
|||||||
@@ -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');
|
||||||
|
|||||||
@@ -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');
|
||||||
|
|||||||
@@ -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');
|
||||||
|
|||||||
@@ -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()) {
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user