summaryrefslogtreecommitdiff
path: root/src/q_troll.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/q_troll.c')
-rw-r--r--src/q_troll.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/q_troll.c b/src/q_troll.c
index b3875418..4a38f2d0 100644
--- a/src/q_troll.c
+++ b/src/q_troll.c
@@ -1,8 +1,9 @@
#include "q_troll.h"
+#include "hooks.h"
#define cquest (quest[QUEST_TROLL])
-bool_ quest_troll_gen_hook(char *fmt)
+static bool_ quest_troll_gen_hook(const char *fmt)
{
int x, y;
int xstart = 2;
@@ -94,7 +95,8 @@ bool_ quest_troll_gen_hook(char *fmt)
cquest.data[0] = FALSE;
return TRUE;
}
-bool_ quest_troll_finish_hook(char *fmt)
+
+static bool_ quest_troll_finish_hook(const char *fmt)
{
s32b q_idx;
@@ -114,7 +116,8 @@ bool_ quest_troll_finish_hook(char *fmt)
return TRUE;
}
-bool_ quest_troll_death_hook(char *fmt)
+
+static bool_ quest_troll_death_hook(const char *fmt)
{
int x, y, xstart = 2, ystart = 2;
s32b r_idx, m_idx;
@@ -167,6 +170,7 @@ bool_ quest_troll_death_hook(char *fmt)
return FALSE;
}
+
bool_ quest_troll_init_hook(int q_idx)
{
if ((cquest.status >= QUEST_STATUS_TAKEN) && (cquest.status < QUEST_STATUS_FINISHED))