From 6dfc7e135c979e306e4be50cd22e9bed26533c2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Valor=20Mart=C3=ADnez?= Date: Sun, 6 Nov 2022 15:05:17 +0100 Subject: [PATCH] =?UTF-8?q?A=C3=B1adidos=20nuevos=20trucos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/game.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/source/game.cpp b/source/game.cpp index 7bc1d21..76f7cc8 100644 --- a/source/game.cpp +++ b/source/game.cpp @@ -40,7 +40,7 @@ Game::Game(SDL_Renderer *renderer, Screen *screen, Resource *resource, Asset *as // Inicializa el resto de variables ticks = 0; ticksSpeed = 15; - board.lives = 2; + board.lives = 9; board.items = 0; board.rooms = 1; board.music = true; @@ -410,7 +410,7 @@ void Game::killPlayer() this->player->pause(); // Deshabilita las entradas hasta que no haya ninguna activa - //input->disableUntil(d_keyPressed); + // input->disableUntil(d_keyPressed); } // Recarga todas las texturas @@ -513,6 +513,12 @@ bool Game::checkEndGame() return true; } + if (options->cheat.jailEnabled && a && c) + { + section.name = SECTION_PROG_ENDING; + return true; + } + return false; }