aboutsummaryrefslogtreecommitdiffstats
path: root/src/gameplay.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2015-10-01 08:53:49 -0400
committerClyne Sullivan <tullivan99@gmail.com>2015-10-01 08:53:49 -0400
commit68ec0bf510fd16cf4e6d7aabd7998fe656c25444 (patch)
treefc269ebdb6f7c9c76037058e8b1b95caefc6ee59 /src/gameplay.cpp
parent9757c1c7e8704080c4e20cde442baf06960e98e7 (diff)
quest completion
Diffstat (limited to 'src/gameplay.cpp')
-rw-r--r--src/gameplay.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gameplay.cpp b/src/gameplay.cpp
index b32c75a..ad44eb2 100644
--- a/src/gameplay.cpp
+++ b/src/gameplay.cpp
@@ -10,18 +10,18 @@ extern std::vector<Structures *>build;
extern Player *player;
int giveTestQuest(NPC *speaker){
- ui::dialogBox("Here, have a quest!");
+ ui::dialogBox(speaker->name,"Here, have a quest!");
player->qh.assign("Test");
return 0;
}
int compTestQuest(NPC *speaker){
if(player->qh.hasQuest("Test")){
- ui::dialogBox("Ooo, that's a nice quest you got there. Lemme finish that for you ;).");
- player->qh.finish("test");
+ ui::dialogBox(speaker->name,"Ooo, that's a nice quest you got there. Lemme finish that for you ;).");
+ player->qh.finish("Test");
return 0;
}else{
- ui::dialogBox("You need to get a quest from entity[1] first.");
+ ui::dialogBox(speaker->name,"You need to get a quest from %s first.",entity[1]->name);
return 1;
}
}