From 2c95c7eacd1fe8e7a3e6bce88856f9db2b3314d7 Mon Sep 17 00:00:00 2001 From: "Eevee (Evelyn Woods)" Date: Wed, 22 Dec 2021 22:09:13 -0700 Subject: [PATCH] Update MS compat so bugs and walkers still avoid fire (fixes #69) (nice) --- js/defs.js | 4 ++-- js/tiletypes.js | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/js/defs.js b/js/defs.js index 891f7ac..f6eca18 100644 --- a/js/defs.js +++ b/js/defs.js @@ -296,8 +296,8 @@ export const COMPAT_FLAGS = [ label: "Bonking while sliding doesn't apply instantly", rulesets: new Set(['lynx', 'ms']), }, { - key: 'fire_allows_monsters', - label: "Fire doesn't block monsters", + key: 'fire_allows_most_monsters', + label: "Fire doesn't block monsters, except bugs and walkers", rulesets: new Set(['ms']), }, ]; diff --git a/js/tiletypes.js b/js/tiletypes.js index 8b28f5d..960b287 100644 --- a/js/tiletypes.js +++ b/js/tiletypes.js @@ -781,7 +781,9 @@ const TILE_TYPES = { if (other.type.collision_mask & (COLLISION.fireball | COLLISION.yellow_tank | COLLISION.ghost)) return false; if (other.type.collision_mask & COLLISION.monster_any) { - return ! level.compat.fire_allows_monsters; + if (level.compat.fire_allows_most_monsters && other.type.name !== 'bug' && other.type.name !== 'walker') + return false; + return true; } return false; },