temp.txt created online with Bitbucket

This commit is contained in:
SWG Source
2018-03-23 16:07:37 -07:00
committed by CekisSWG
parent e8c5b66956
commit f52aebcfb1
82555 changed files with 1 additions and 4633262 deletions
@@ -1,82 +0,0 @@
package script.systems.spawning;
import script.obj_id;
public class spawn_master extends script.systems.spawning.spawn_base
{
public spawn_master()
{
}
public int OnUniverseComplete(obj_id self) throws InterruptedException
{
if (!hasObjVar(self, "boolSpawnerIsOn"))
{
setObjVar(self, "boolSpawnerIsOn", true);
}
if (!hasObjVar(self, "intMaxPlanetSpawnCount"))
{
setObjVar(self, "intMaxPlanetSpawnCount", 10000);
}
else
{
int intSpawnLimit = getIntObjVar(self, "intMaxPlanetSpawnCount");
if (intSpawnLimit > 10000)
{
setObjVar(self, "intMaxPlanetSpawnCount", 10000);
}
}
preLoadSpawnDataTables(self);
setObjVar(self, "intCurrentPlanetSpawnCount", 0);
setObjVar(self, "intMinSpawnDelay", SPAWN_PLAYER_DELAY_MIN);
setObjVar(self, "intMaxSpawnDelay", SPAWN_PLAYER_DELAY_MAX);
String strConfigSetting = getConfigSetting("GameServer", "spawningInitialState");
if (strConfigSetting != null)
{
if (strConfigSetting.equals("on"))
{
setObjVar(self, "boolSpawnerIsOn", true);
}
else if (strConfigSetting.equals("off"))
{
setObjVar(self, "boolSpawnerIsOn", false);
}
}
return SCRIPT_CONTINUE;
}
public int OnAttach(obj_id self) throws InterruptedException
{
if (!hasObjVar(self, "boolSpawnerIsOn"))
{
setObjVar(self, "boolSpawnerIsOn", true);
}
if (!hasObjVar(self, "intMaxPlanetSpawnCount"))
{
setObjVar(self, "intMaxPlanetSpawnCount", 10000);
}
else
{
int intSpawnLimit = getIntObjVar(self, "intMaxPlanetSpawnCount");
if (intSpawnLimit > 10000)
{
setObjVar(self, "intMaxPlanetSpawnCount", 10000);
}
}
preLoadSpawnDataTables(self);
setObjVar(self, "intCurrentPlanetSpawnCount", 0);
setObjVar(self, "intMinSpawnDelay", SPAWN_PLAYER_DELAY_MIN);
setObjVar(self, "intMaxSpawnDelay", SPAWN_PLAYER_DELAY_MAX);
String strConfigSetting = getConfigSetting("GameServer", "spawningInitialState");
if (strConfigSetting != null)
{
if (strConfigSetting.equals("on"))
{
setObjVar(self, "boolSpawnerIsOn", true);
}
else if (strConfigSetting.equals("off"))
{
setObjVar(self, "boolSpawnerIsOn", false);
}
}
return SCRIPT_CONTINUE;
}
}