fix: equalize power-up spawn odds, use Math.Max in domain, null-guard Definition

This commit is contained in:
2026-05-14 01:39:39 +02:00
parent eedbbb2b47
commit 65af5ad2eb
2 changed files with 6 additions and 7 deletions

View File

@@ -65,8 +65,8 @@ namespace Infrastructure.Unity
// Set Theme based on High Score
ThemeManager.CurrentTheme = ThemeManager.GetTheme(_gameSession.HighScore);
var floorsCount = levelGenerator ? levelGenerator.Definition.FloorCount : 1;
var floorsCount = levelGenerator?.Definition != null ? levelGenerator.Definition.FloorCount : 1;
if (levelGenerator)
{