mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-11 09:50:34 +00:00
Raiders take pseudohept into account
This commit is contained in:
parent
1c07230f88
commit
4bf892442f
4
game.cpp
4
game.cpp
@ -851,13 +851,13 @@ bool passable_for(eMonster m, cell *w, cell *from, flagtype extra) {
|
||||
if(extra & P_ONPLAYER) {
|
||||
if(isPlayerOn(w)) return true;
|
||||
}
|
||||
return !ctof(w) && passable(w, from, extra);
|
||||
return !pseudohept(w) && passable(w, from, extra);
|
||||
}
|
||||
if(m == moAltDemon) {
|
||||
if(extra & P_ONPLAYER) {
|
||||
if(isPlayerOn(w)) return true;
|
||||
}
|
||||
return (!w || !from || w==from || ctof(w) || ctof(from)) && passable(w, from, extra);
|
||||
return (!w || !from || w==from || pseudohept(w) || pseudohept(from)) && passable(w, from, extra);
|
||||
}
|
||||
if(m == moMonk) {
|
||||
if(extra & P_ONPLAYER) {
|
||||
|
@ -97,7 +97,7 @@ bool out_ruin(cell *c) {
|
||||
|
||||
eMonster genRuinMonster(cell *c) {
|
||||
eMonster m = pick(moHexDemon, moHexDemon, moHexDemon, moAltDemon, moAltDemon, moMonk, moMonk, moSkeleton, moSkeleton, moCrusher);
|
||||
if(m == moHexDemon && ctof(c))
|
||||
if(m == moHexDemon && pseudohept(c))
|
||||
return genRuinMonster(c);
|
||||
if(m == moMonk) {
|
||||
if(c->item) return genRuinMonster(c);
|
||||
|
Loading…
Reference in New Issue
Block a user