temp.txt deleted online with Bitbucket

This commit is contained in:
Alan Elliott
2018-03-23 16:29:56 -07:00
committed by CekisSWG
parent f52aebcfb1
commit a72a84cef8
82556 changed files with 4633262 additions and 4288 deletions
@@ -0,0 +1,82 @@
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;
}
}