Only let the player pick up keys for now
This commit is contained in:
parent
26f9e917a8
commit
5c93b5f199
@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user