mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-20 15:40:26 +00:00
added options -viz and -vizhr for quicker visualizations, and -smart, -smartn, -sr, -srx set the sightrange better now
This commit is contained in:
parent
f166baebfb
commit
1c6f64f370
@ -159,6 +159,23 @@ int arg::readCommon() {
|
||||
showstartmenu = false;
|
||||
}
|
||||
|
||||
else if(argis("-viz")) {
|
||||
PHASE(3);
|
||||
showstartmenu = false;
|
||||
start_game();
|
||||
popScreenAll();
|
||||
clearMessages();
|
||||
nohud = true;
|
||||
mapeditor::drawplayer = false;
|
||||
}
|
||||
|
||||
else if(argis("-vizhr")) {
|
||||
PHASE(3);
|
||||
showstartmenu = false;
|
||||
popScreenAll();
|
||||
clearMessages();
|
||||
}
|
||||
|
||||
// informational
|
||||
else if(argis("-version") || argis("-v")) {
|
||||
printf("HyperRogue version " VER "\n");
|
||||
|
@ -554,17 +554,22 @@ int read_cheat_args() {
|
||||
}
|
||||
else if(argis("-sr")) {
|
||||
PHASEFROM(2);
|
||||
shift(); sightrange_bonus = argi();
|
||||
shift(); sightrange_bonus = argi(); vid.use_smart_range = 0;
|
||||
}
|
||||
else if(argis("-srx")) {
|
||||
PHASEFROM(2); cheat();
|
||||
shift(); sightrange_bonus = genrange_bonus = gamerange_bonus = argi();
|
||||
shift(); sightrange_bonus = genrange_bonus = gamerange_bonus = argi(); vid.use_smart_range = 0;
|
||||
}
|
||||
else if(argis("-smart")) {
|
||||
PHASEFROM(2); cheat();
|
||||
vid.use_smart_range = 2;
|
||||
shift_arg_formula(vid.smart_range_detail);
|
||||
}
|
||||
else if(argis("-smartn")) {
|
||||
PHASEFROM(2);
|
||||
vid.use_smart_range = 1;
|
||||
shift_arg_formula(vid.smart_range_detail);
|
||||
}
|
||||
else if(argis("-smartlimit")) {
|
||||
PHASEFROM(2);
|
||||
shift(); vid.cells_drawn_limit = argi();
|
||||
|
Loading…
Reference in New Issue
Block a user