1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-29 19:40:35 +00:00

fixed the 'special conduct' help in the Haunted Woods

This commit is contained in:
Zeno Rogue 2018-11-10 19:56:44 +01:00
parent 888e0c510a
commit 3e87d463d2
2 changed files with 5 additions and 2 deletions

View File

@ -7308,6 +7308,8 @@ bool monsterPushable(cell *c2) {
return (c2->monst != moFatGuard && !(isMetalBeast(c2->monst) && c2->stuntime < 2) && c2->monst != moTortoise && c2->monst != moTerraWarrior && c2->monst != moVizier);
}
bool got_survivalist;
bool movepcto(int d, int subdir, bool checkonly) {
if(d >= 0 && !checkonly && subdir != 1 && subdir != -1) printf("subdir = %d\n", subdir);
global_pushto = NULL;
@ -7905,8 +7907,8 @@ bool movepcto(int d, int subdir, bool checkonly) {
achievement_gain("WHIRL1");
}
if(items[itLotus] >= 25 && !isHaunted(cwt.at->land) && survivalist) {
survivalist = false;
if(items[itLotus] >= 25 && !isHaunted(cwt.at->land) && survivalist && !got_survivalist) {
got_survivalist = true;
achievement_gain("SURVIVAL");
}

View File

@ -268,6 +268,7 @@ void initgame() {
timerghost = true;
truelotus = 0;
survivalist = true;
got_survivalist = false;
#if CAP_INV
if(inv::on) inv::init();
#endif