mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-27 01:14:52 +00:00
CLI option -each-random
This commit is contained in:
parent
1dced09f71
commit
bc96b7fba9
10
debug.cpp
10
debug.cpp
@ -721,6 +721,16 @@ int read_cheat_args() {
|
||||
if(itemclass(eItem(i)) == IC_TREASURE)
|
||||
items[i] = q;
|
||||
}
|
||||
else if(argis("-each-random")) {
|
||||
PHASEFROM(2); start_game(); cheat();
|
||||
for(int i=0; i<ittypes; i++)
|
||||
if(itemclass(eItem(i)) == IC_TREASURE) {
|
||||
items[i] = 10 + hrand(21);
|
||||
if(i == itElemental) items[i] = 12;
|
||||
}
|
||||
else
|
||||
items[i] = 0;
|
||||
}
|
||||
else if(argis("-viewall")) {
|
||||
PHASE(3); start_game();
|
||||
viewall();
|
||||
|
Loading…
Reference in New Issue
Block a user