OSDN Git Service

[Refactor] #37353 バリアント名称とバージョン定義を core.h へ移動.
[hengband/hengband.git] / src / quest.c
index 21488a5..ffa270b 100644 (file)
@@ -1,6 +1,7 @@
 #include "angband.h"
 #include "util.h"
 
+#include "core.h"
 #include "floor.h"
 #include "floor-save.h"
 #include "floor-events.h"
 #include "player-status.h"
 #include "artifact.h"
 #include "feature.h"
+#include "world.h"
+#include "cmd-dump.h"
 
+quest_type *quest; /*!< Quest info */
+QUEST_IDX max_q_idx; /*!< Maximum number of quests */
+char quest_text[10][80]; /*!< Quest text */
+int quest_text_line; /*!< Current line of the quest text */
+int leaving_quest = 0;
 
 /*!
  * @brief クエスト突入時のメッセージテーブル / Array of places to find an inscription
@@ -526,7 +534,7 @@ void do_cmd_quest(void)
        {
                msg_print(_("ここにはクエストへの入口があります。", "There is an entry of a quest."));
                if (!get_check(_("クエストに入りますか?", "Do you enter? "))) return;
-               if ((p_ptr->pseikaku == SEIKAKU_COMBAT) || (inventory[INVEN_BOW].name1 == ART_CRIMSON))
+               if ((p_ptr->pseikaku == SEIKAKU_COMBAT) || (p_ptr->inventory_list[INVEN_BOW].name1 == ART_CRIMSON))
                        msg_print(_("『とにかく入ってみようぜぇ。』", ""));
                else if (p_ptr->pseikaku == SEIKAKU_CHARGEMAN) msg_print("『全滅してやるぞ!』");