Only let the player pick up keys for now

This commit is contained in:
Eevee (Evelyn Woods) 2020-09-25 05:11:30 -06:00
parent 26f9e917a8
commit 5c93b5f199

View File

@ -858,7 +858,8 @@ export class Level {
if (actor.ignores(tile.type.name)) if (actor.ignores(tile.type.name))
continue; 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) { if (tile.type.is_key) {
this.sfx.play_once('get-key', cell); this.sfx.play_once('get-key', cell);
} }