1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-18 11:19:59 +00:00

command line option --killeach

This commit is contained in:
Zeno Rogue 2018-09-24 00:05:05 +02:00
parent c8e604f408
commit 303cd41b3a
2 changed files with 8 additions and 0 deletions

View File

@ -511,6 +511,13 @@ int read_cheat_args() {
shift(); eMonster m = readMonster(args());
shift(); kills[m] += argi();
}
else if(argis("-killeach")) {
PHASEFROM(2); start_game();
shift(); int q = argi(); cheat();
for(int m=0; m<motypes; m++)
if(monsterclass(eMonster(m)) == 0)
kills[m] = q;
}
else if(argis("-each")) {
PHASEFROM(2); start_game();
shift(); int q = argi(); autocheat = true;

View File

@ -2982,6 +2982,7 @@ double hdist0(const hyperpoint& mh);
extern bool fading;
extern ld fadeout;
int itemclass(eItem i);
int monsterclass(eMonster m);
extern purehookset hooks_drawmap;
extern hookset<bool(eLand&)> *hooks_music;