Only the player can step on thieves
This commit is contained in:
parent
420b497cf2
commit
274fa7c3c5
@ -373,6 +373,8 @@ const TILE_TYPES = {
|
|||||||
},
|
},
|
||||||
thief_tools: {
|
thief_tools: {
|
||||||
draw_layer: LAYER_TERRAIN,
|
draw_layer: LAYER_TERRAIN,
|
||||||
|
blocks_monsters: true,
|
||||||
|
blocks_blocks: true,
|
||||||
on_arrive(me, level, other) {
|
on_arrive(me, level, other) {
|
||||||
if (other.inventory) {
|
if (other.inventory) {
|
||||||
for (let [name, count] of Object.entries(other.inventory)) {
|
for (let [name, count] of Object.entries(other.inventory)) {
|
||||||
@ -385,6 +387,8 @@ const TILE_TYPES = {
|
|||||||
},
|
},
|
||||||
thief_keys: {
|
thief_keys: {
|
||||||
draw_layer: LAYER_TERRAIN,
|
draw_layer: LAYER_TERRAIN,
|
||||||
|
blocks_monsters: true,
|
||||||
|
blocks_blocks: true,
|
||||||
on_arrive(me, level, other) {
|
on_arrive(me, level, other) {
|
||||||
if (other.inventory) {
|
if (other.inventory) {
|
||||||
for (let [name, count] of Object.entries(other.inventory)) {
|
for (let [name, count] of Object.entries(other.inventory)) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user