Fix double-ejecting from traps in Lynx
This commit is contained in:
parent
257e9db64b
commit
e8cb95a60b
@ -1522,13 +1522,8 @@ const TILE_TYPES = {
|
|||||||
level._set_tile_prop(me, 'presses', 0);
|
level._set_tile_prop(me, 'presses', 0);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
on_arrive(me, level, other) {
|
|
||||||
// Lynx (not cc2): open traps immediately eject their contents on arrival, if possible
|
|
||||||
if (level.compat.traps_like_lynx) {
|
|
||||||
level.attempt_out_of_turn_step(other, other.direction);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
on_stand(me, level, other) {
|
on_stand(me, level, other) {
|
||||||
|
// Lynx: open traps eject their contents at the end of each tic
|
||||||
if (level.compat.traps_like_lynx) {
|
if (level.compat.traps_like_lynx) {
|
||||||
level.attempt_out_of_turn_step(other, other.direction);
|
level.attempt_out_of_turn_step(other, other.direction);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user