Fix double-ejecting from traps in Lynx

This commit is contained in:
Eevee (Evelyn Woods) 2021-05-11 17:39:19 -06:00
parent 257e9db64b
commit e8cb95a60b

View File

@ -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);
} }