1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-01-01 09:59:03 +00:00

Merge pull request #475 from ohlordhebacc/switch-ghost-timer-cheat-shmup

Make the "switch ghost timer" cheat display shmup::curtime instead of the turn/knives thrown count in shmup
This commit is contained in:
Zeno Rogue
2025-10-13 09:14:18 +02:00
committed by GitHub

View File

@@ -246,8 +246,14 @@ vector<cheatkey> cheats = {
cheatkey{'G'-64, "switch ghost timer", [] {
timerghost = !timerghost;
cheater++;
addMessage(XLAT("turn count = %1 last exploration = %2 ghost timer = %3",
its(turncount), its(lastexplore), ONOFF(timerghost)));
if(shmup::on) {
addMessage(XLAT("in-game time = %1 last exploration = %2 ghost timer = %3",
its(shmup::curtime), its(lastexplore), ONOFF(timerghost)));
}
else {
addMessage(XLAT("turn count = %1 last exploration = %2 ghost timer = %3",
its(turncount), its(lastexplore), ONOFF(timerghost)));
}
}},
cheatkey{'G', "edit cell values", push_debug_screen},
cheatkey{'L'-64, "cell info", [] {