From 60e8d237c86e2e9d744443ce699616d87b698818 Mon Sep 17 00:00:00 2001 From: Pasha Date: Fri, 23 Jan 2026 13:28:16 +0000 Subject: [PATCH] Fixed Difficulty scaling --- Assets/Scripts/WindowSpawner.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Scripts/WindowSpawner.cs b/Assets/Scripts/WindowSpawner.cs index c7df09a..cf17b0f 100644 --- a/Assets/Scripts/WindowSpawner.cs +++ b/Assets/Scripts/WindowSpawner.cs @@ -102,7 +102,7 @@ namespace InterfaceOff const int MIN_SPAWN_TIME = 2 * TICKS_PER_SECOND; const int MAX_SPAWN_TIME = 5 * TICKS_PER_SECOND; - int currentMaxSpawnTime = MAX_SPAWN_TIME - (int)(ScoreTracker.CurrentScore() / DifficultyManager.DifficultyEffect); + int currentMaxSpawnTime = MAX_SPAWN_TIME - (int)(ScoreTracker.CurrentScore() * DifficultyManager.DifficultyEffect); currentMaxSpawnTime = Math.Clamp(currentMaxSpawnTime, MIN_SPAWN_TIME + 1, MAX_SPAWN_TIME); /* Decreases the spawn counter and spawns if at 0 */