1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-31 05:52:59 +00:00

rogueviz:: used args::add and made hypcity and hypocycloid enablable

This commit is contained in:
Zeno Rogue
2021-03-31 03:18:36 +02:00
parent ceb79290ae
commit 8a836fd1ea
10 changed files with 44 additions and 111 deletions

View File

@@ -132,14 +132,8 @@ void create_janko() {
gi.menu_displayed_name = "Janko group J1";
}
auto shot_hooks = addHook(hooks_args, 100, [] {
if(arg::argis("-janko1x")) {
build();
experiment();
}
else return true;
return false;
}) + addHook(hooks_initialize, 100, create_janko);
auto shot_hooks = arg::add3("-janko1x", [] { build(); experiment(); })
+ addHook(hooks_initialize, 100, create_janko);
}