aboutsummaryrefslogtreecommitdiffstats
path: root/src/gameplay.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gameplay.cpp')
-rw-r--r--src/gameplay.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/gameplay.cpp b/src/gameplay.cpp
index 17a7bed..3b9b819 100644
--- a/src/gameplay.cpp
+++ b/src/gameplay.cpp
@@ -22,13 +22,7 @@ int compTestQuest(NPC *speaker){
int giveTestQuest(NPC *speaker){
ui::dialogBox(speaker->name,"Here, have a quest!");
player->qh.assign("Test");
- NPCp(entity[2])->addAIFunc(compTestQuest);
- return 0;
-}
-
-int giveStuff(NPC *speaker){
- ui::dialogBox(speaker->name,"Have a sword :D");
- player->inv->addItem(SWORD_ITEM,1);
+ NPCp(entity[2])->addAIFunc(compTestQuest,true);
return 0;
}
@@ -64,8 +58,7 @@ void initEverything(void){
entity.pop_back();
- NPCp(entity[1])->addAIFunc(giveStuff);
- NPCp(entity[1])->addAIFunc(giveTestQuest);
+ NPCp(entity[1])->addAIFunc(giveTestQuest,false);
for(i=0;i<entity.size()+1;i++){
entity[i]->inWorld=test;
}