mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-20 15:40:26 +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);
|
||||
}
|
||||
|
||||
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");
|
||||
}
|
||||
|
||||
|
@ -268,6 +268,7 @@ void initgame() {
|
||||
timerghost = true;
|
||||
truelotus = 0;
|
||||
survivalist = true;
|
||||
got_survivalist = false;
|
||||
#if CAP_INV
|
||||
if(inv::on) inv::init();
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user