Update MS compat so bugs and walkers still avoid fire (fixes #69) (nice)
This commit is contained in:
parent
b4ebdf069d
commit
2c95c7eacd
@ -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']),
|
||||
},
|
||||
];
|
||||
|
||||
@ -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;
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user