OSDN Git Service

[Refactor] #37353 コメント整理 / Refactor comments.
authorDeskull <deskull@users.sourceforge.jp>
Thu, 22 Nov 2018 12:24:09 +0000 (21:24 +0900)
committerDeskull <deskull@users.sourceforge.jp>
Thu, 22 Nov 2018 12:24:09 +0000 (21:24 +0900)
src/floor-save.c
src/monster-process.c
src/monster2.c
src/spells1.c
src/spells2.c
src/xtra2.c

index 290077d..4e37a9b 100644 (file)
@@ -478,7 +478,7 @@ static void preserve_pet(void)
                                msg_format(_("%sは消え去った!", "%^s disappears!"), m_name);
                        }
 
-                       /* Delete the monster */
+
                        delete_monster_idx(i);
                }
        }
index cd664e8..78d6097 100644 (file)
@@ -298,7 +298,7 @@ void mon_take_hit_mon(MONSTER_IDX m_idx, HIT_POINT dam, bool *fear, cptr note, I
                        /* Generate treasure */
                        monster_death(m_idx, FALSE);
 
-                       /* Delete the monster */
+
                        delete_monster_idx(m_idx);
 
                        /* Not afraid */
@@ -774,43 +774,20 @@ static bool get_fear_moves_aux(MONSTER_IDX m_idx, POSITION *yp, POSITION *xp)
  */
 
 
-static sint d_off_y_0[] =
-{ 0 };
-
-static sint d_off_x_0[] =
-{ 0 };
-
-
-static sint d_off_y_1[] =
-{ -1, -1, -1, 0, 0, 1, 1, 1, 0 };
-
-static sint d_off_x_1[] =
-{ -1, 0, 1, -1, 1, -1, 0, 1, 0 };
-
+static sint d_off_y_0[] = { 0 };
+static sint d_off_x_0[] = { 0 };
 
-static sint d_off_y_2[] =
-{ -1, -1, -2, -2, -2, 0, 0, 1, 1, 2, 2, 2, 0 };
+static sint d_off_y_1[] = { -1, -1, -1, 0, 0, 1, 1, 1, 0 };
+static sint d_off_x_1[] = { -1, 0, 1, -1, 1, -1, 0, 1, 0 };
 
-static sint d_off_x_2[] =
-{ -2, 2, -1, 0, 1, -2, 2, -2, 2, -1, 0, 1, 0 };
+static sint d_off_y_2[] = { -1, -1, -2, -2, -2, 0, 0, 1, 1, 2, 2, 2, 0 };
+static sint d_off_x_2[] = { -2, 2, -1, 0, 1, -2, 2, -2, 2, -1, 0, 1, 0 };
 
+static sint d_off_y_3[] = { -1, -1, -2, -2, -3, -3, -3, 0, 0, 1, 1, 2, 2, 3, 3, 3, 0 };
+static sint d_off_x_3[] = { -3, 3, -2, 2, -1, 0, 1, -3, 3, -3, 3, -2, 2, -1, 0, 1, 0 };
 
-static sint d_off_y_3[] =
-{ -1, -1, -2, -2, -3, -3, -3, 0, 0, 1, 1, 2, 2,
-  3, 3, 3, 0 };
-
-static sint d_off_x_3[] =
-{ -3, 3, -2, 2, -1, 0, 1, -3, 3, -3, 3, -2, 2,
-  -1, 0, 1, 0 };
-
-
-static sint d_off_y_4[] =
-{ -1, -1, -2, -2, -3, -3, -3, -3, -4, -4, -4, 0,
-  0, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 0 };
-
-static sint d_off_x_4[] =
-{ -4, 4, -3, 3, -2, -3, 2, 3, -1, 0, 1, -4, 4,
-  -4, 4, -3, 3, -2, -3, 2, 3, -1, 0, 1, 0 };
+static sint d_off_y_4[] = { -1, -1, -2, -2, -3, -3, -3, -3, -4, -4, -4, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 0 };
+static sint d_off_x_4[] = { -4, 4, -3, 3, -2, -3, 2, 3, -1, 0, 1, -4, 4, -4, 4, -3, 3, -2, -3, 2, 3, -1, 0, 1, 0 };
 
 
 static sint d_off_y_5[] =
@@ -1992,7 +1969,7 @@ static bool monst_attack_monst(MONSTER_IDX m_idx, MONSTER_IDX t_idx)
                                        if (see_m)
                                        {
 #ifdef JP
-                                               msg_format("%sは%^sの攻撃をかわした。", t_name,m_name);
+                                               msg_format("%sは%^sの攻撃をかわした。", t_name, m_name);
 #else
                                                msg_format("%^s misses %s.", m_name, t_name);
 #endif
@@ -2190,7 +2167,7 @@ void process_monster(MONSTER_IDX m_idx)
                        do_cmd_write_nikki(NIKKI_NAMED_PET, RECORD_NAMED_PET_LOSE_PARENT, m_name);
                }
 
-               /* Delete the monster */
+
                delete_monster_idx(m_idx);
 
                return;
@@ -2223,7 +2200,7 @@ void process_monster(MONSTER_IDX m_idx)
                        /* Generate treasure, etc */
                        monster_death(m_idx, FALSE);
 
-                       /* Delete the monster */
+
                        delete_monster_idx(m_idx);
 
                        if (sad)
index 496622a..da24c78 100644 (file)
@@ -476,7 +476,7 @@ void compact_monsters(int size)
                                do_cmd_write_nikki(NIKKI_NAMED_PET, RECORD_NAMED_PET_COMPACT, m_name);
                        }
 
-                       /* Delete the monster */
+
                        delete_monster_idx(i);
 
                        /* Count the monster */
index 3da57c3..be4b48c 100644 (file)
@@ -4863,7 +4863,7 @@ static bool project_m(MONSTER_IDX who, POSITION r, POSITION y, POSITION x, HIT_P
                        /* Generate treasure, etc */
                        monster_death(c_ptr->m_idx, FALSE);
 
-                       /* Delete the monster */
+
                        delete_monster_idx(c_ptr->m_idx);
 
                        if (sad)
index a4264ce..904d201 100644 (file)
@@ -1131,7 +1131,7 @@ bool genocide_aux(MONSTER_IDX m_idx, int power, bool player_cast, int dam_side,
        else if (player_cast && (r_ptr->level > randint0(power))) resist = TRUE;
        else if (player_cast && (m_ptr->mflag2 & MFLAG2_NOGENO)) resist = TRUE;
 
-       /* Delete the monster */
+
        else
        {
                if (record_named_pet && is_pet(m_ptr) && m_ptr->nickname)
@@ -2077,7 +2077,7 @@ bool earthquake_aux(POSITION cy, POSITION cx, POSITION r, MONSTER_IDX m_idx)
                                                        }
                                                }
 
-                                               /* Delete the monster */
+
                                                delete_monster(yy, xx);
 
                                                /* No longer safe */
index ba27981..990e9cc 100644 (file)
@@ -1929,7 +1929,7 @@ msg_format("%sを葬り去った。", m_name);
 
                        if (is_pet(m_ptr)) mode |= PM_FORCE_PET;
 
-                       /* Delete the monster */
+
                        delete_monster_idx(m_idx);
 
                        if (summon_named_creature(0, dummy_y, dummy_x, MON_BIKETAL, mode))
@@ -1939,7 +1939,7 @@ msg_format("%sを葬り去った。", m_name);
                }
                else
                {
-                       /* Delete the monster */
+
                        delete_monster_idx(m_idx);
                }