1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 21:07:17 +00:00

-each commandline command

This commit is contained in:
Zeno Rogue 2017-10-10 14:04:42 +02:00
parent a154ead894
commit 664ebe30ee

View File

@ -298,6 +298,12 @@ else if(args()[0] == '-' && args()[1] == x && args()[2] == '0') { showstartmenu
debugfile = stderr;
shift(); debugflags = argi();
}
else if(argis("-each")) {
shift(); int q = argi(); autocheat = true;
for(int i=0; i<ittypes; i++)
if(itemclass(eItem(i)) == IC_TREASURE)
items[i] = q;
}
else if(argis("-ch")) { autocheat = true; }
else if(argis("-zoom")) {
PHASEFROM(2); shift(); vid.scale = argf();