pre redo commit

This commit is contained in:
TAASONI3
2024-09-02 19:18:19 +02:00
parent 80e11d3ce0
commit 1235d5ff0c
3 changed files with 122 additions and 193 deletions

View File

@@ -213,7 +213,7 @@ namespace Assets.Scripts.Player
public void gameFinished()
{
if (worldGenerator.gameWon())
if (worldGenerator.gameWon() && player.getStat("Level").getAmount() >= difficulty * 10 + 10)
{
finishedGame = true;
uihandler.showMessage("SUCCESS;" + TextHandler.getText("gameWon"));