diff options
Diffstat (limited to 'src/q_spider.cc')
-rw-r--r-- | src/q_spider.cc | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/q_spider.cc b/src/q_spider.cc index a5fa3486..8fc6e874 100644 --- a/src/q_spider.cc +++ b/src/q_spider.cc @@ -13,6 +13,7 @@ #include "tables.hpp" #include "util.hpp" #include "variable.hpp" +#include "z-term.hpp" #define cquest (quest[QUEST_SPIDER]) @@ -38,13 +39,13 @@ static bool quest_spider_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("spiders.map", &ystart, &xstart, cur_hgt, cur_wid, TRUE, TRUE); + process_dungeon_file("spiders.map", &ystart, &xstart, cur_hgt, cur_wid, true, true); return true; } @@ -89,7 +90,7 @@ static bool quest_spider_death_hook(void *, void *, void *) cquest.status = QUEST_STATUS_COMPLETED; del_hook_new(HOOK_MONSTER_DEATH, quest_spider_death_hook); - process_hooks_restart = TRUE; + process_hooks_restart = true; return false; } @@ -115,17 +116,14 @@ static bool quest_spider_finish_hook(void *, void *in_, void *) object_prep(q_ptr, lookup_kind(TV_POTION, SV_POTION_AUGMENTATION)); q_ptr->number = 1; q_ptr->found = OBJ_FOUND_REWARD; - object_aware(q_ptr); - object_known(q_ptr); - q_ptr->ident |= IDENT_STOREB; - inven_carry(q_ptr, FALSE); + inven_carry(q_ptr, false); /* Continue the plot */ *(quest[q_idx].plot) = QUEST_POISON; quest[*(quest[q_idx].plot)].init(); del_hook_new(HOOK_QUEST_FINISH, quest_spider_finish_hook); - process_hooks_restart = TRUE; + process_hooks_restart = true; return true; } |