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

@@ -1,6 +1,6 @@
function getInactiveReactors(map) {
var reactors = new Array();
var reactors = [];
var iter = map.getReactors().iterator();
while (iter.hasNext()) {
var mo = iter.next();
@@ -8,13 +8,13 @@ function getInactiveReactors(map) {
reactors.push(mo);
}
}
return reactors;
}
function start(ms) {
var map = ms.getClient().getChannelServer().getMapFactory().getMap(926120300);
map.resetReactors(getInactiveReactors(map));
return(true);
function start(ms) {
var map = ms.getClient().getChannelServer().getMapFactory().getMap(926120300);
map.resetReactors(getInactiveReactors(map));
return (true);
}