mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-07-04 10:42:51 +00:00
rogueviz::crystal-sokoban:: add arg::add2
This commit is contained in:
parent
7a7bb2dddb
commit
af28dd98da
@ -40,6 +40,7 @@ undo_state current_state() {
|
|||||||
void sb_hooks();
|
void sb_hooks();
|
||||||
|
|
||||||
void run_sb() {
|
void run_sb() {
|
||||||
|
showstartmenu = false;
|
||||||
crystal::compass_probability = 0;
|
crystal::compass_probability = 0;
|
||||||
stop_game();
|
stop_game();
|
||||||
crystal::set_crystal(6);
|
crystal::set_crystal(6);
|
||||||
@ -172,18 +173,7 @@ void sb_hooks() {
|
|||||||
rv_hook(hooks_handleKey, 50, soko_key);
|
rv_hook(hooks_handleKey, 50, soko_key);
|
||||||
}
|
}
|
||||||
|
|
||||||
auto sbhook = addHook(hooks_args, 100, [] {
|
auto sbhook = arg::add2("-crystal-sokoban", run_sb);
|
||||||
using namespace arg;
|
|
||||||
|
|
||||||
if(0) ;
|
|
||||||
else if(argis("-crystal-sokoban")) {
|
|
||||||
PHASEFROM(2);
|
|
||||||
run_sb();
|
|
||||||
showstartmenu = false;
|
|
||||||
}
|
|
||||||
else return 1;
|
|
||||||
return 0;
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user