OSDN Git Service

[Refactor] #37353 コメント整理。 / Refactor comments.
authorDeskull <deskull@users.sourceforge.jp>
Sat, 19 Jan 2019 11:38:49 +0000 (20:38 +0900)
committerDeskull <deskull@users.sourceforge.jp>
Sat, 19 Jan 2019 11:38:49 +0000 (20:38 +0900)
src/selfinfo.c
src/spells3.c

index b06fd53..515f87b 100644 (file)
@@ -1450,7 +1450,6 @@ void self_knowledge(void)
                        info[i++] = _("あなたの武器はログルスの徴の属性をもつ。", "Your weapon is branded with the Sign of Logrus.");\r
                }\r
 \r
-               /* Hack */\r
                if (have_flag(flgs, TR_IMPACT))\r
                {\r
                        info[i++] = _("あなたの武器は打撃で地震を発生することができる。", "The impact of your weapon can cause earthquakes.");\r
@@ -1642,14 +1641,14 @@ static int report_magics_aux(int dur)
 static concptr report_magic_durations[] =\r
 {\r
 #ifdef JP\r
-"ごく短い間",\r
-"少しの間",\r
-"しばらくの間",\r
-"多少長い間",\r
-"長い間",\r
-"非常に長い間",\r
-"信じ難いほど長い間",\r
-"モンスターを攻撃するまで"\r
+       "ごく短い間",\r
+       "少しの間",\r
+       "しばらくの間",\r
+       "多少長い間",\r
+       "長い間",\r
+       "非常に長い間",\r
+       "信じ難いほど長い間",\r
+       "モンスターを攻撃するまで"\r
 #else\r
        "for a short time",\r
        "for a little while",\r
index 037a509..2919964 100644 (file)
@@ -1975,12 +1975,8 @@ bool alchemy(void)
                msg_format(_("%sを$%d の金に変えた。", "You turn %s to %ld coins worth of gold."), o_name, price);
 
                p_ptr->au += price;
-
-               /* Redraw gold */
                p_ptr->redraw |= (PR_GOLD);
-
                p_ptr->window |= (PW_PLAYER);
-
        }
 
        /* Eliminate the item (from the pack) */
@@ -2334,7 +2330,6 @@ bool identify_item(object_type *o_ptr)
 
        /* Player touches it */
        o_ptr->marked |= OM_TOUCHED;
-
        p_ptr->update |= (PU_BONUS | PU_COMBINE | PU_REORDER);
        p_ptr->window |= (PW_INVEN | PW_EQUIP | PW_PLAYER);
 
@@ -3197,8 +3192,7 @@ bool potion_smash_effect(MONSTER_IDX who, POSITION y, POSITION x, KIND_OBJECT_ID
                        /* Do nothing */  ;
        }
 
-       (void)project(who, radius, y, x, dam, dt,
-           (PROJECT_JUMP | PROJECT_ITEM | PROJECT_KILL), -1);
+       (void)project(who, radius, y, x, dam, dt, (PROJECT_JUMP | PROJECT_ITEM | PROJECT_KILL), -1);
 
        /* XXX  those potions that explode need to become "known" */
        return angry;
@@ -3222,8 +3216,6 @@ void display_spell_list(void)
        GAME_TEXT name[MAX_NLEN];
        char out_val[160];
 
-
-       /* Erase window */
        clear_from(0);
 
        /* They have too many spells to list */
@@ -3916,7 +3908,6 @@ bool curse_armor(void)
 
        GAME_TEXT o_name[MAX_NLEN];
 
-
        /* Curse the body armor */
        o_ptr = &inventory[INVEN_BODY];
 
@@ -3930,11 +3921,11 @@ bool curse_armor(void)
        {
                /* Cool */
 #ifdef JP
-msg_format("%sが%sを包み込もうとしたが、%sはそれを跳ね返した!",
-"恐怖の暗黒オーラ", "防具", o_name);
+               msg_format("%sが%sを包み込もうとしたが、%sはそれを跳ね返した!",
+                       "恐怖の暗黒オーラ", "防具", o_name);
 #else
                msg_format("A %s tries to %s, but your %s resists the effects!",
-                          "terrible black aura", "surround your armor", o_name);
+                       "terrible black aura", "surround your armor", o_name);
 #endif
 
        }
@@ -3963,11 +3954,7 @@ msg_format("%sが%sを包み込もうとしたが、%sはそれを跳ね返し
 
                /* Break it */
                o_ptr->ident |= (IDENT_BROKEN);
-               p_ptr->update |= (PU_BONUS);
-
-               /* Recalculate mana */
-               p_ptr->update |= (PU_MANA);
-
+               p_ptr->update |= (PU_BONUS | PU_MANA);
                p_ptr->window |= (PW_INVEN | PW_EQUIP | PW_PLAYER);
        }
 
@@ -4027,11 +4014,7 @@ bool curse_weapon_object(bool force, object_type *o_ptr)
 
                /* Break it */
                o_ptr->ident |= (IDENT_BROKEN);
-               p_ptr->update |= (PU_BONUS);
-
-               /* Recalculate mana */
-               p_ptr->update |= (PU_MANA);
-
+               p_ptr->update |= (PU_BONUS | PU_MANA);
                p_ptr->window |= (PW_INVEN | PW_EQUIP | PW_PLAYER);
        }
 
@@ -4113,8 +4096,7 @@ static MONRACE_IDX poly_r_idx(MONRACE_IDX r_idx)
        DEPTH lev1, lev2;
 
        /* Hack -- Uniques/Questors never polymorph */
-       if ((r_ptr->flags1 & RF1_UNIQUE) ||
-           (r_ptr->flags1 & RF1_QUESTOR))
+       if ((r_ptr->flags1 & RF1_UNIQUE) || (r_ptr->flags1 & RF1_QUESTOR))
                return (r_idx);
 
        /* Allowable range of "levels" for resulting monster */