1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-02 18:57:56 +00:00

unlock_all flag

This commit is contained in:
Zeno Rogue
2024-12-01 12:43:31 +01:00
parent 2f57e5a98a
commit 6cff0839fd
4 changed files with 11 additions and 4 deletions

View File

@@ -431,7 +431,7 @@ EX void show_chaos() {
cmode = sm::SIDE | sm::MAYDARK;
gamescreen();
dialog::init(XLAT("land structure"));
chaosUnlocked = chaosUnlocked || autocheat;
chaosUnlocked = chaosUnlocked || unlock_all || autocheat;
dialog::addHelp(
XLAT("In the Chaos mode, lands change very often, and "
@@ -804,7 +804,7 @@ EX void showChangeMode() {
#endif
dialog::addBoolItem(XLAT("%1 Challenge", moPrincess), (princess::challenge), 'P');
dialog::add_action_confirmed([] {
if(!princess::everSaved && !autocheat)
if(!princess::everSaved && !autocheat && !unlock_all)
addMessage(XLAT("Save %the1 first to unlock this challenge!", moPrincess));
else restart_game(rg::princess);
});
@@ -814,7 +814,7 @@ EX void showChangeMode() {
dialog::addBoolItem(XLAT("Yendor Challenge"), (yendor::on), 'y');
dialog::add_action([] {
clearMessages();
if(yendor::everwon || autocheat)
if(yendor::everwon || autocheat || unlock_all)
pushScreen(yendor::showMenu);
else gotoHelp(yendor::chelp);
});