3.1 Config Refactor

This commit is contained in:
AconiteGodOfSWG
2021-03-28 16:44:33 -04:00
parent 694a499356
commit 355796dd48
148 changed files with 900 additions and 6277 deletions
@@ -10,11 +10,14 @@ public class spawner extends script.base_script
public spawner()
{
}
public static final boolean DISABLE_SPACE_SPAWNERS = utils.checkConfigFlag("GameServer", "disableSpaceSpawners");
public int getSpawnerData(obj_id self, dictionary params) throws InterruptedException
{
if (hasObjVar(self, "strAsteroidType"))
{
if (utils.checkConfigFlag("ScriptFlags", "spawnersOn"))
if (!DISABLE_SPACE_SPAWNERS)
{
messageTo(self, "startSpawning", null, 3, false);
}
@@ -53,7 +56,7 @@ public class spawner extends script.base_script
}
utils.setScriptVar(self, "trPatrolPoints", trPatrolPoints);
}
if (utils.checkConfigFlag("ScriptFlags", "spawnersOn"))
if (!DISABLE_SPACE_SPAWNERS)
{
messageTo(self, "startSpawning", null, 3, false);
return SCRIPT_CONTINUE;