mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-08-01 01:15:59 -04:00
3.1 Config Refactor
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user