mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 21:07:17 +00:00
added flag do_not_touch_this_wall
This commit is contained in:
parent
62868fd752
commit
406e289c1f
@ -363,5 +363,9 @@ EX bool hornStuns(cell *c) {
|
|||||||
attackJustStuns(c, AF_NORMAL, moNone);
|
attackJustStuns(c, AF_NORMAL, moNone);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** changing this wall for whatever reason may cause the game to crash */
|
||||||
|
EX bool do_not_touch_this_wall(cell *c) {
|
||||||
|
return among(c->wall, waMirrorWall, waBarrier, waRoundTable);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -935,7 +935,7 @@ bool pcmove::attack() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
EX bool chaos_forbidden(cell *c) {
|
EX bool chaos_forbidden(cell *c) {
|
||||||
return among(c->wall, waMirrorWall, waBarrier, waRoundTable) || isMultitile(c->monst);
|
return do_not_touch_this_wall(c) || isMultitile(c->monst);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool pcmove::perform_actual_move() {
|
bool pcmove::perform_actual_move() {
|
||||||
|
Loading…
Reference in New Issue
Block a user