mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-07-04 02:32:51 +00:00
fixed the 'special conduct' help in the Haunted Woods
This commit is contained in:
parent
888e0c510a
commit
3e87d463d2
6
game.cpp
6
game.cpp
@ -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);
|
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) {
|
bool movepcto(int d, int subdir, bool checkonly) {
|
||||||
if(d >= 0 && !checkonly && subdir != 1 && subdir != -1) printf("subdir = %d\n", subdir);
|
if(d >= 0 && !checkonly && subdir != 1 && subdir != -1) printf("subdir = %d\n", subdir);
|
||||||
global_pushto = NULL;
|
global_pushto = NULL;
|
||||||
@ -7905,8 +7907,8 @@ bool movepcto(int d, int subdir, bool checkonly) {
|
|||||||
achievement_gain("WHIRL1");
|
achievement_gain("WHIRL1");
|
||||||
}
|
}
|
||||||
|
|
||||||
if(items[itLotus] >= 25 && !isHaunted(cwt.at->land) && survivalist) {
|
if(items[itLotus] >= 25 && !isHaunted(cwt.at->land) && survivalist && !got_survivalist) {
|
||||||
survivalist = false;
|
got_survivalist = true;
|
||||||
achievement_gain("SURVIVAL");
|
achievement_gain("SURVIVAL");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -268,6 +268,7 @@ void initgame() {
|
|||||||
timerghost = true;
|
timerghost = true;
|
||||||
truelotus = 0;
|
truelotus = 0;
|
||||||
survivalist = true;
|
survivalist = true;
|
||||||
|
got_survivalist = false;
|
||||||
#if CAP_INV
|
#if CAP_INV
|
||||||
if(inv::on) inv::init();
|
if(inv::on) inv::init();
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user