diff options
Diffstat (limited to 'src/q_wight.cc')
-rw-r--r-- | src/q_wight.cc | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/q_wight.cc b/src/q_wight.cc index ced87277..4c4c549e 100644 --- a/src/q_wight.cc +++ b/src/q_wight.cc @@ -15,6 +15,7 @@ #include "util.hpp" #include "variable.hpp" #include "z-rand.hpp" +#include "z-term.hpp" #include <cassert> @@ -44,13 +45,13 @@ static bool quest_wight_gen_hook(void *, void *, void *) dun_level = quest[p_ptr->inside_quest].level; /* Set the correct monster hook */ - set_mon_num_hook(); + reset_get_monster_hook(); /* Prepare allocation table */ get_mon_num_prep(); init_flags = INIT_CREATE_DUNGEON; - process_dungeon_file("wights.map", &ystart, &xstart, cur_hgt, cur_wid, TRUE, TRUE); + process_dungeon_file("wights.map", &ystart, &xstart, cur_hgt, cur_wid, true, true); for (x = 3; x < xstart; x++) { @@ -60,9 +61,9 @@ static bool quest_wight_gen_hook(void *, void *, void *) { int m_idx = 0; - m_allow_special[get_wight_king()] = TRUE; - m_idx = place_monster_one(y, x, get_wight_king(), 0, FALSE, MSTATUS_ENEMY); - m_allow_special[get_wight_king()] = FALSE; + m_allow_special[get_wight_king()] = true; + m_idx = place_monster_one(y, x, get_wight_king(), 0, false, MSTATUS_ENEMY); + m_allow_special[get_wight_king()] = false; if (m_idx) { @@ -93,8 +94,6 @@ static bool quest_wight_gen_hook(void *, void *, void *) TR_CURSED | TR_HEAVY_CURSE; - q_ptr->ident |= IDENT_CURSED; - if (randint(2) == 1) { q_ptr->art_flags |= TR_SPELL; @@ -153,7 +152,7 @@ static bool quest_wight_death_hook(void *, void *in_, void *) cquest.status = QUEST_STATUS_COMPLETED; del_hook_new(HOOK_MONSTER_DEATH, quest_wight_death_hook); - process_hooks_restart = TRUE; + process_hooks_restart = true; return false; } @@ -179,7 +178,7 @@ static bool quest_wight_finish_hook(void *, void *in_, void *) quest[*(quest[q_idx].plot)].init(); del_hook_new(HOOK_QUEST_FINISH, quest_wight_finish_hook); - process_hooks_restart = TRUE; + process_hooks_restart = true; return true; } |