From b0f5e9f0c25169e65c536ab52782a6ea66086c43 Mon Sep 17 00:00:00 2001 From: Vehn Date: Mon, 28 Jan 2019 14:21:00 -0600 Subject: [PATCH] Fix: the items created from the loot pool are now being added to the ItemManager. --- behaviors/npc/lootable.js | 1 + 1 file changed, 1 insertion(+) diff --git a/behaviors/npc/lootable.js b/behaviors/npc/lootable.js index 2728c2b..9228f39 100644 --- a/behaviors/npc/lootable.js +++ b/behaviors/npc/lootable.js @@ -38,6 +38,7 @@ module.exports = { items.forEach(item => { item.hydrate(state); + state.ItemManager.add(item); corpse.addItem(item); }); room.addItem(corpse);