OSDN Git Service

Went back to using "staffs" as the plural of staff rather than "stave" since saw...
[hengbandforosx/hengbandosx.git] / src / wizard2.c
index 1313f4c..b95b4fa 100644 (file)
@@ -11,7 +11,6 @@
  */
 
 #include "angband.h"
-#include "floor.h"
 #include "selfinfo.h"
 #include "patron.h"
 #include "mutation.h"
@@ -29,6 +28,9 @@
 #include "object-hook.h"
 #include "monster-status.h"
 
+#include "floor.h"
+#include "floor-save.h"
+
 #ifdef ALLOW_WIZARD
 
 /*!
@@ -415,7 +417,7 @@ static void do_cmd_wiz_change(void)
  *     thus accepting the default-values for the remaining values.
  *     pval comes first now, since it is most important.
  * - wiz_reroll_item()
- *     apply some magic to the item or current_world_ptr->game_turn it into an artifact.
+ *     apply some magic to the item or turn it into an artifact.
  * - wiz_roll_item()
  *     Get some statistics about the rarity of an item:
  *     We create a lot of fake items and see if they are of the
@@ -763,7 +765,7 @@ static void wiz_tweak_item(object_type *o_ptr)
 
 /*!
  * @brief アイテムの質を選択して再生成する /
- * Apply magic to an item or current_world_ptr->game_turn it into an artifact. -Bernd-
+ * Apply magic to an item or turn it into an artifact. -Bernd-
  * @param o_ptr 再生成の対象となるアイテム情報の参照ポインタ
  * @return なし
  */
@@ -1078,8 +1080,6 @@ static void wiz_quantity_item(object_type *o_ptr)
        {
                /* Extract */
                tmp_int = atoi(tmp_val);
-
-               /* Paranoia */
                if (tmp_int < 1) tmp_int = 1;
                if (tmp_int > 99) tmp_int = 99;
 
@@ -1349,8 +1349,6 @@ static void do_cmd_wiz_jump(void)
 
                p_ptr->dungeon_idx = tmp_dungeon_type;
        }
-
-       /* Paranoia */
        if (command_arg < d_info[p_ptr->dungeon_idx].mindepth) command_arg = 0;
        if (command_arg > d_info[p_ptr->dungeon_idx].maxdepth) command_arg = (COMMAND_ARG)d_info[p_ptr->dungeon_idx].maxdepth;
 
@@ -1474,8 +1472,6 @@ static void do_cmd_wiz_zap(void)
        for (i = 1; i < m_max; i++)
        {
                monster_type *m_ptr = &current_floor_ptr->m_list[i];
-
-               /* Paranoia -- Skip dead monsters */
                if (!monster_is_valid(m_ptr)) continue;
 
                /* Skip the mount */
@@ -1511,8 +1507,6 @@ static void do_cmd_wiz_zap_all(void)
        for (i = 1; i < m_max; i++)
        {
                monster_type *m_ptr = &current_floor_ptr->m_list[i];
-
-               /* Paranoia -- Skip dead monsters */
                if (!monster_is_valid(m_ptr)) continue;
 
                /* Skip the mount */
@@ -1586,8 +1580,6 @@ static void do_cmd_wiz_create_feature(void)
 
        note_spot(y, x);
        lite_spot(y, x);
-
-       /* Update some things */
        p_ptr->update |= (PU_FLOW);
 
        prev_feat = tmp_feat;