let any actor with a key unlock gates (unlike doors)
This commit is contained in:
parent
8feb732a8f
commit
71abc13330
@ -894,7 +894,7 @@ export const TILE_DESCRIPTIONS = {
|
||||
},
|
||||
gate_red: {
|
||||
name: "Red gate",
|
||||
desc: "Requires a red key. Unlike doors, may be placed on top of other terrain.",
|
||||
desc: "Requires a red key. Unlike doors, may be placed on top of other terrain, and any actor with the key may unlock it.",
|
||||
},
|
||||
sand: {
|
||||
name: "Sand",
|
||||
|
||||
@ -34,8 +34,7 @@ function _define_door(key) {
|
||||
function _define_gate(key) {
|
||||
return {
|
||||
layer: LAYERS.canopy,
|
||||
// Doors can be opened by ice blocks, but not dirt blocks or monsters
|
||||
blocks_collision: COLLISION.block_cc1 | COLLISION.monster_typical,
|
||||
// Unlike doors, anything with the key (or a ghost) can step on them
|
||||
blocks(me, level, other) {
|
||||
if (other.type.name === 'ghost')
|
||||
return false;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user