mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-20 06:03:01 +00:00
no more pushing statues on arrow/fire traps
This commit is contained in:
parent
e36246e392
commit
cded55423b
5
game.cpp
5
game.cpp
@ -827,8 +827,9 @@ bool sharkpassable(cell *w, cell *c) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool canPushStatueOn(cell *c) {
|
bool canPushStatueOn(cell *c) {
|
||||||
return passable(c, NULL, P_MONSTER) && c->wall != waBoat && !snakelevel(c) &&
|
return passable(c, NULL, P_MONSTER) && !snakelevel(c) &&
|
||||||
!isWorm(c->monst) && !isReptile(c->wall) && !peace::on;
|
!isWorm(c->monst) && !isReptile(c->wall) && !peace::on &&
|
||||||
|
!among(c->wall, waBoat, waFireTrap, waArrowTrap);
|
||||||
}
|
}
|
||||||
|
|
||||||
void moveBoat(cell *to, cell *from, int direction_hint) {
|
void moveBoat(cell *to, cell *from, int direction_hint) {
|
||||||
|
Loading…
Reference in New Issue
Block a user