Made it explicitly required to provide IModeBehaviour for StartGameOverSequence()

This commit is contained in:
josshmot 2025-04-04 20:19:17 +10:00
parent 803d2d6e2d
commit e94aced834

View File

@ -47,11 +47,11 @@ namespace NewHorizons.Components
var gameOver = _gameOvers.FirstOrDefault(x => !string.IsNullOrEmpty(x.condition) && DialogueConditionManager.SharedInstance.GetConditionState(x.condition)); var gameOver = _gameOvers.FirstOrDefault(x => !string.IsNullOrEmpty(x.condition) && DialogueConditionManager.SharedInstance.GetConditionState(x.condition));
if (!_gameOverSequenceStarted && gameOver != null && !Locator.GetDeathManager()._finishedDLC) if (!_gameOverSequenceStarted && gameOver != null && !Locator.GetDeathManager()._finishedDLC)
{ {
StartGameOverSequence(gameOver, null); StartGameOverSequence(gameOver, null, null);
} }
} }
public void StartGameOverSequence(GameOverModule gameOver, DeathType? deathType, IModBehaviour mod = null) public void StartGameOverSequence(GameOverModule gameOver, DeathType? deathType, IModBehaviour mod)
{ {
_gameOverSequenceStarted = true; _gameOverSequenceStarted = true;
Delay.StartCoroutine(GameOver(gameOver, deathType, mod)); Delay.StartCoroutine(GameOver(gameOver, deathType, mod));