Afegit Cheevos::clearUnobtainableState();

This commit is contained in:
2025-03-01 22:49:03 +01:00
parent aca2be98af
commit cd96be80f9
4 changed files with 26 additions and 13 deletions

View File

@@ -55,6 +55,7 @@ Game::Game()
changeRoom(current_room_);
Cheevos::get()->enable(!options.cheats.enabled()); // Deshabilita los logros si hay trucos activados
Cheevos::get()->clearUnobtainableState();
options.section.section = Section::GAME;
options.section.subsection = Subsection::NONE;
@@ -392,7 +393,7 @@ void Game::killPlayer()
stats_->addDeath(room_->getName());
// Invalida el logro de pasarse el juego sin morir
Cheevos::get()->invalidate(11);
Cheevos::get()->setUnobtainable(11);
// Sonido
JA_PlaySound(Resource::get()->getSound("death.wav"));
@@ -530,7 +531,7 @@ void Game::checkRestoringJail()
const bool haveTheItems = board_->items >= int(total_items_ * 0.9f);
if (!haveTheItems)
{
Cheevos::get()->invalidate(9);
Cheevos::get()->setUnobtainable(9);
}
}
}