From 28b830a19778f1e490fc0ce612cd3387ad87f03a Mon Sep 17 00:00:00 2001 From: Steve Date: Mon, 30 Nov 2015 12:41:27 +0000 Subject: [PATCH] Invoke script when objective is complete. --- src/battle/objectives.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/battle/objectives.c b/src/battle/objectives.c index 3fce4e0..5ccb1cf 100644 --- a/src/battle/objectives.c +++ b/src/battle/objectives.c @@ -102,6 +102,8 @@ void updateObjective(char *name, int type) o->status = OS_COMPLETE; addHudMessage(colors.green, "%s - Objective Complete!", o->description); + runScriptFunction(o->description); + runScriptFunction("OBJECTIVES_COMPLETE %d", battle.numObjectivesComplete + 1); } }