diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2015-10-02 08:47:11 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2015-10-02 08:47:11 -0400 |
commit | a277430f0ddde9ea2583f4b0c44fcafe8a2528bf (patch) | |
tree | 32a4bf8f1b6a32e237a9c486555f8215a2213ca9 /src/gameplay.cpp | |
parent | aa73352387af9efc77495ebdac6d19fb276dd75a (diff) |
added inventories
Diffstat (limited to 'src/gameplay.cpp')
-rw-r--r-- | src/gameplay.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gameplay.cpp b/src/gameplay.cpp index ad44eb2..9331828 100644 --- a/src/gameplay.cpp +++ b/src/gameplay.cpp @@ -18,7 +18,7 @@ int giveTestQuest(NPC *speaker){ int compTestQuest(NPC *speaker){ if(player->qh.hasQuest("Test")){ ui::dialogBox(speaker->name,"Ooo, that's a nice quest you got there. Lemme finish that for you ;)."); - player->qh.finish("Test"); + player->qh.finish("Test",player); return 0; }else{ ui::dialogBox(speaker->name,"You need to get a quest from %s first.",entity[1]->name); @@ -56,6 +56,7 @@ void initEverything(void){ switch(i){ case 1: NPCp(entity[i])->addAIFunc(giveTestQuest); + entity[i]->inv->addItem(TEST_ITEM,3); break; case 2: NPCp(entity[i])->addAIFunc(compTestQuest); |