1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 01:00:25 +00:00

Implement the "gain Orb of Yendor" keyboard shortcut.

Alternatively, we could just remove this option from the menu
(it's not implemented prior to this patch).
This commit is contained in:
Arthur O'Dwyer 2017-10-30 18:17:12 -07:00
parent d3fd02f896
commit d0a271878b

View File

@ -185,6 +185,10 @@ bool applyCheat(char u, cell *c = NULL) {
}
cheater++; addMessage(XLAT("Collected the keys!"));
}
if(u == 'Y'-64) {
yendor::collected(cwt.c);
cheater++;
}
if(u == 'P') {
items[itSavedPrincess]++;
princess::saved = true;
@ -319,7 +323,6 @@ void showCheatMenu() {
dialog::addItem(XLAT("gain kills"), 'K');
dialog::addItem(XLAT("Hyperstone Quest"), 'C');
dialog::addItem(XLAT("summon orbs"), 'O');
dialog::addItem(XLAT("gain Orb of Yendor"), 'Y');
dialog::addItem(XLAT("summon lots of treasure"), 'T'-64);
dialog::addItem(XLAT("Safety (quick save)"), 'S');
dialog::addItem(XLAT("Select the land ---"), 'L');
@ -328,6 +331,7 @@ void showCheatMenu() {
dialog::addItem(XLAT("deplete orb powers"), 'M');
dialog::addItem(XLAT("save a Princess"), 'P');
dialog::addItem(XLAT("unlock Orbs of Yendor"), 'Y');
dialog::addItem(XLAT("gain Orb of Yendor"), 'Y'-64);
dialog::addItem(XLAT("switch ghost timer"), 'G'-64);
dialog::addItem(XLAT("switch web display"), 'W'-64);
dialog::addItem(XLAT("peaceful mode"), 'P'-64);