Improved Player QoL

This commit is contained in:
Pasha Bibko
2026-01-15 15:44:46 +00:00
parent c4211494a3
commit 0dd7bd5829
4 changed files with 252 additions and 45 deletions

View File

@@ -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();
}
}