Improved Player QoL
This commit is contained in:
@@ -87,11 +87,15 @@ namespace InterfaceOff
|
||||
{
|
||||
if (AutoSpawn)
|
||||
{
|
||||
const int TICKS_PER_SECOND = 20;
|
||||
const int MINIMUM_SPAWN_TIME = 2 * 20;
|
||||
const int MAXIMUM_SPAWN_TIME = 5 * 20;
|
||||
|
||||
/* Decreases the spawn counter and spawns if at 0 */
|
||||
SpawnCounter = Math.Max(0, SpawnCounter - 1);
|
||||
if (SpawnCounter == 0)
|
||||
{
|
||||
SpawnCounter = Random.Range(0, 4 * 20);
|
||||
SpawnCounter = Random.Range(MINIMUM_SPAWN_TIME, MAXIMUM_SPAWN_TIME);
|
||||
SpawnNewRandomWindow();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user