fix: equalize power-up spawn odds, use Math.Max in domain, null-guard Definition
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user