OSDN Git Service

[Refactor] #38997 set_blind() に player_type * 引数を追加. hit_trap_set_abnormal_status_p...
[hengband/hengband.git] / src / wizard1.c
index 6d128fe..bd582b5 100644 (file)
 
 #include "angband.h"
 #include "util.h"
+#include "term.h"
 
+#include "core.h"
 #include "artifact.h"
 #include "sort.h"
 #include "store.h"
 #include "monster.h"
 #include "object-flavor.h"
 #include "object-hook.h"
+#include "object-ego.h"
+#include "objectkind.h"
+#include "floor-town.h"
+#include "files.h"
 
 
 #ifdef ALLOW_SPOILERS
@@ -215,7 +221,6 @@ static void kind_info(char *buf, char *dam, char *wgt, char *chance, DEPTH *lev,
        (*lev) = k_info[q_ptr->k_idx].level;
        (*val) = object_value(q_ptr);
 
-       /* Hack */
        if (!buf || !dam || !chance || !wgt) return;
 
        /* Description (too brief) */
@@ -305,8 +310,6 @@ static void spoil_obj_desc(concptr fname)
        char chance[80];
        char dam[80];
 
-
-       /* Build the filename */
        path_build(buf, sizeof(buf), ANGBAND_DIR_USER, fname);
 
        /* File type is "TEXT" */
@@ -1600,8 +1603,6 @@ static void spoil_artifact(concptr fname)
        object_type *q_ptr;
        obj_desc_list artifact;
        char buf[1024];
-
-       /* Build the filename */
        path_build(buf, sizeof(buf), ANGBAND_DIR_USER, fname);
 
        /* File type is "TEXT" */
@@ -1684,8 +1685,6 @@ static void spoil_mon_desc(concptr fname)
        char ac[80];
        char hp[80];
        char exp[80];
-
-       /* Build the filename */
        path_build(buf, sizeof(buf), ANGBAND_DIR_USER, fname);
 
        /* File type is "TEXT" */
@@ -2018,8 +2017,6 @@ static void spoil_mon_info(concptr fname)
 
        u16b why = 2;
        MONRACE_IDX *who;
-
-       /* Build the filename */
        path_build(buf, sizeof(buf), ANGBAND_DIR_USER, fname);
 
        /* File type is "TEXT" */
@@ -2226,8 +2223,6 @@ static void spoil_mon_evol(concptr fname)
        monster_race *r_ptr;
        int **evol_tree, i, j, n, r_idx;
        int *evol_tree_zero; /* For C_KILL() */
-
-       /* Build the filename */
        path_build(buf, sizeof buf, ANGBAND_DIR_USER, fname);
 
        /* File type is "TEXT" */
@@ -2342,12 +2337,6 @@ static void spoil_mon_evol(concptr fname)
 }
 
 
-
-/*
- * Forward declare
- */
-extern void do_cmd_spoilers(void);
-
 /*!
  * @brief スポイラー出力を行うコマンドのメインルーチン / 
  * Create Spoiler files -BEN-
@@ -2530,8 +2519,6 @@ void spoil_random_artifact(concptr fname)
        object_type *q_ptr;
 
        char buf[1024];
-
-       /* Build the filename */
        path_build(buf, sizeof(buf), ANGBAND_DIR_USER, fname);
 
        /* File type is "TEXT" */