Don't blow up players that start on mines by default; fixes CCLP4 #38
This commit is contained in:
parent
4e83d7a3fd
commit
b87ce730f2
@ -2937,6 +2937,10 @@ const COMPAT_FLAGS = [{
|
||||
key: 'no_immediate_detonate_bombs',
|
||||
label: "Don't immediately detonate populated mines",
|
||||
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',
|
||||
label: "Blue tanks and teeth can push ice blocks",
|
||||
|
||||
@ -878,6 +878,8 @@ const TILE_TYPES = {
|
||||
// In CC2, actors on a bomb (but not a green one) are immediately blown up
|
||||
let actor = me.cell.get_actor();
|
||||
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);
|
||||
}
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user