Update MS compat so bugs and walkers still avoid fire (fixes #69) (nice)

This commit is contained in:
Eevee (Evelyn Woods) 2021-12-22 22:09:13 -07:00
parent b4ebdf069d
commit 2c95c7eacd
2 changed files with 5 additions and 3 deletions

View File

@ -296,8 +296,8 @@ export const COMPAT_FLAGS = [
label: "Bonking while sliding doesn't apply instantly", label: "Bonking while sliding doesn't apply instantly",
rulesets: new Set(['lynx', 'ms']), rulesets: new Set(['lynx', 'ms']),
}, { }, {
key: 'fire_allows_monsters', key: 'fire_allows_most_monsters',
label: "Fire doesn't block monsters", label: "Fire doesn't block monsters, except bugs and walkers",
rulesets: new Set(['ms']), rulesets: new Set(['ms']),
}, },
]; ];

View File

@ -781,7 +781,9 @@ const TILE_TYPES = {
if (other.type.collision_mask & (COLLISION.fireball | COLLISION.yellow_tank | COLLISION.ghost)) if (other.type.collision_mask & (COLLISION.fireball | COLLISION.yellow_tank | COLLISION.ghost))
return false; return false;
if (other.type.collision_mask & COLLISION.monster_any) { 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; return false;
}, },