1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-17 23:17:39 +00:00

ru:: cheat feature for quicker testing

This commit is contained in:
Zeno Rogue
2025-05-02 22:23:27 +02:00
parent a3c42c89be
commit 4ff77aa64e
3 changed files with 45 additions and 0 deletions

View File

@@ -407,6 +407,7 @@ void add_platf_hooks() {
}
auto chk = arg::add3("-ru", enable)
+ arg::add3("-ru-cheat", [] { arg::shift(); load_cheat(arg::args()); })
+ addHook(mapstream::hooks_loadmap, 100, [] (hstream& f, int id) {
if(id == 67) {
println(hlog, "loading platformer");