Don't blow up players that start on mines by default; fixes CCLP4 #38

This commit is contained in:
Eevee (Evelyn Woods) 2021-01-25 16:54:09 -07:00
parent 4e83d7a3fd
commit b87ce730f2
2 changed files with 6 additions and 0 deletions

View File

@ -2937,6 +2937,10 @@ const COMPAT_FLAGS = [{
key: 'no_immediate_detonate_bombs', key: 'no_immediate_detonate_bombs',
label: "Don't immediately detonate populated mines", label: "Don't immediately detonate populated mines",
rulesets: new Set(['lynx', 'ms']), rulesets: new Set(['lynx', 'ms']),
}, {
key: 'detonate_bombs_under_players',
label: "Detonate mines populated by players",
rulesets: new Set(['steam', 'steam-strict']),
}, { }, {
key: 'tanks_teeth_push_ice_blocks', key: 'tanks_teeth_push_ice_blocks',
label: "Blue tanks and teeth can push ice blocks", label: "Blue tanks and teeth can push ice blocks",

View File

@ -878,6 +878,8 @@ const TILE_TYPES = {
// In CC2, actors on a bomb (but not a green one) are immediately blown up // In CC2, actors on a bomb (but not a green one) are immediately blown up
let actor = me.cell.get_actor(); let actor = me.cell.get_actor();
if (actor && ! actor.ignores(this.name)) { if (actor && ! actor.ignores(this.name)) {
if (actor.type.is_real_player && ! level.compat.detonate_bombs_under_players)
return;
this.on_arrive(me, level, actor); this.on_arrive(me, level, actor);
} }
}, },