summaryrefslogtreecommitdiff
path: root/src/q_rand.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/q_rand.c')
-rw-r--r--src/q_rand.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/q_rand.c b/src/q_rand.c
index c952b861..2c0898c4 100644
--- a/src/q_rand.c
+++ b/src/q_rand.c
@@ -1,9 +1,9 @@
static int randquest_hero[] = { 20, 13, 15, 16, 9, 17, 18, 8, -1 };
-bool is_randhero(int level)
+bool_ is_randhero(int level)
{
int i;
- bool result = FALSE;
+ bool_ result = FALSE;
for (i = 0; randquest_hero[i] != -1; i++)
{
@@ -213,7 +213,7 @@ void hero_death(s32b m_idx, s32b r_idx)
}
}
-bool quest_random_death_hook(char *fmt)
+bool_ quest_random_death_hook(char *fmt)
{
int r_idx;
s32b m_idx;
@@ -242,13 +242,13 @@ bool quest_random_death_hook(char *fmt)
return (FALSE);
}
-bool quest_random_turn_hook(char *fmt)
+bool_ quest_random_turn_hook(char *fmt)
{
quest[QUEST_RANDOM].data[0] = 0;
quest[QUEST_RANDOM].data[1] = 0;
return (FALSE);
}
-bool quest_random_feeling_hook(char *fmt)
+bool_ quest_random_feeling_hook(char *fmt)
{
if (!(dungeon_flags1 & DF1_PRINCIPAL)) return (FALSE);
if ((dun_level < 1) || (dun_level >= MAX_RANDOM_QUEST)) return (FALSE);
@@ -266,7 +266,7 @@ bool quest_random_feeling_hook(char *fmt)
cmsg_format(TERM_YELLOW, "You hear someone shouting: 'Leave me alone, stupid %s'", r_info[random_quests[dun_level].r_idx].name + r_name);
return (FALSE);
}
-bool quest_random_gen_hero_hook(char *fmt)
+bool_ quest_random_gen_hero_hook(char *fmt)
{
int i;
@@ -296,7 +296,7 @@ bool quest_random_gen_hero_hook(char *fmt)
return (FALSE);
}
-bool quest_random_gen_hook(char *fmt)
+bool_ quest_random_gen_hook(char *fmt)
{
s32b x, y, bx0, by0;
int xstart;
@@ -385,7 +385,7 @@ bool quest_random_gen_hook(char *fmt)
return (TRUE);
}
-bool quest_random_dump_hook(char *fmt)
+bool_ quest_random_dump_hook(char *fmt)
{
static char *number[] =
{ "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten" };
@@ -429,7 +429,7 @@ bool quest_random_dump_hook(char *fmt)
return (FALSE);
}
-bool quest_random_init_hook(int q_idx)
+bool_ quest_random_init_hook(int q_idx)
{
add_hook(HOOK_MONSTER_DEATH, quest_random_death_hook, "rand_death");
add_hook(HOOK_NEW_LEVEL, quest_random_turn_hook, "rand_new_lvl");