From 5c93b5f199ab62c47b771b3f8cd72da269b1a711 Mon Sep 17 00:00:00 2001 From: "Eevee (Evelyn Woods)" Date: Fri, 25 Sep 2020 05:11:30 -0600 Subject: [PATCH] Only let the player pick up keys for now --- js/game.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/game.js b/js/game.js index 0f2d2a4..7cf4ef4 100644 --- a/js/game.js +++ b/js/game.js @@ -858,7 +858,8 @@ export class Level { if (actor.ignores(tile.type.name)) continue; - if (tile.type.is_item && this.give_actor(actor, tile.type.name)) { + // TODO some actors can pick up some items... + if (actor.type.is_player && tile.type.is_item && this.give_actor(actor, tile.type.name)) { if (tile.type.is_key) { this.sfx.play_once('get-key', cell); }