let any actor with a key unlock gates (unlike doors)

This commit is contained in:
Timothy Stiles committed 2021-11-20 12:57:58 +11:00
1 parent 8feb732a8f
commit 71abc13330
2 files changed
+2 -3

No files matched your search

+1 -1
View File
@@ -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",
+1 -2
View File
@@ -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;