summaryrefslogtreecommitdiff
path: root/src/map/quest.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/quest.c')
-rw-r--r--src/map/quest.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/map/quest.c b/src/map/quest.c
index b822b67ca..057c46d7c 100644
--- a/src/map/quest.c
+++ b/src/map/quest.c
@@ -185,6 +185,15 @@ int quest_update_objective(TBL_PC * sd, int quest_id, int objective_num, const c
}
+bool quest_has_quest(TBL_PC * sd, int quest_id)
+{
+ int i;
+
+ ARR_FIND(0, MAX_QUEST, i, sd->quest_log[i].quest_id == quest_id);
+
+ return (i != MAX_QUEST);
+}
+
int quest_update_status(TBL_PC * sd, int quest_id, bool status)
{