From dd664263ac309579d2fcd3ace06e383b59ed2a4e Mon Sep 17 00:00:00 2001 From: Deskull Date: Sat, 5 Jan 2019 11:49:18 +0900 Subject: [PATCH] =?utf8?q?[Refactor]=20#37353=20=E3=82=B3=E3=83=A1?= =?utf8?q?=E3=83=B3=E3=83=88=E6=95=B4=E7=90=86=E3=80=82=20/=20Refactor=20c?= =?utf8?q?omments.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/bldg.c | 2 -- src/spells3.c | 16 +++------------- src/store.c | 2 -- 3 files changed, 3 insertions(+), 17 deletions(-) diff --git a/src/bldg.c b/src/bldg.c index 21d4d1ad3..de7eedf29 100644 --- a/src/bldg.c +++ b/src/bldg.c @@ -3403,7 +3403,6 @@ static void building_recharge(void) /* Pay the price */ p_ptr->au -= 50; - /* Identify it */ identify_item(o_ptr); /* Description */ @@ -3661,7 +3660,6 @@ static void building_recharge_all(void) /* skip non magic device */ if (o_ptr->tval < TV_STAFF || o_ptr->tval > TV_ROD) continue; - /* Identify it */ if (!object_is_known(o_ptr)) { identify_item(o_ptr); diff --git a/src/spells3.c b/src/spells3.c index 4df737875..2d7be87de 100644 --- a/src/spells3.c +++ b/src/spells3.c @@ -1532,13 +1532,12 @@ void call_the_(void) #ifdef JP msg_format("あなたは%sを壁に近すぎる場所で唱えてしまった!", ((mp_ptr->spell_book == TV_LIFE_BOOK) ? "祈り" : "呪文")); - msg_print("大きな爆発音があった!"); #else msg_format("You %s the %s too close to a wall!", ((mp_ptr->spell_book == TV_LIFE_BOOK) ? "recite" : "cast"), ((mp_ptr->spell_book == TV_LIFE_BOOK) ? "prayer" : "spell")); - msg_print("There is a loud explosion!"); #endif + msg_print(_("大きな爆発音があった!", "There is a loud explosion!")); if (one_in_(666)) { @@ -1625,10 +1624,8 @@ void fetch(DIRECTION dir, WEIGHT wgt, bool require_los) } else { - /* Use a direction */ - ty = p_ptr->y; /* Where to drop the item */ + ty = p_ptr->y; tx = p_ptr->x; - do { ty += ddy[dir]; @@ -1715,7 +1712,6 @@ bool warding_glyph(void) cave[p_ptr->y][p_ptr->x].mimic = feat_glyph; note_spot(p_ptr->y, p_ptr->x); - lite_spot(p_ptr->y, p_ptr->x); return TRUE; @@ -1741,9 +1737,7 @@ bool place_mirror(void) cave[p_ptr->y][p_ptr->x].info |= CAVE_GLOW; note_spot(p_ptr->y, p_ptr->x); - lite_spot(p_ptr->y, p_ptr->x); - update_local_illumination(p_ptr->y, p_ptr->x); return TRUE; @@ -1767,8 +1761,7 @@ bool explosive_rune(void) cave[p_ptr->y][p_ptr->x].info |= CAVE_OBJECT; cave[p_ptr->y][p_ptr->x].mimic = feat_explosive_rune; - note_spot(p_ptr->y, p_ptr->x); - + note_spot(p_ptr->y, p_ptr->x); lite_spot(p_ptr->y, p_ptr->x); return TRUE; @@ -1793,7 +1786,6 @@ void identify_pack(void) /* Skip non-objects */ if (!o_ptr->k_idx) continue; - /* Identify it */ identify_item(o_ptr); /* Auto-inscription */ @@ -2454,7 +2446,6 @@ bool ident_spell(bool only_equip) o_ptr = &o_list[0 - item]; } - /* Identify it */ old_known = identify_item(o_ptr); object_desc(o_name, o_ptr, 0); @@ -2593,7 +2584,6 @@ bool identify_fully(bool only_equip) o_ptr = &o_list[0 - item]; } - /* Identify it */ old_known = identify_item(o_ptr); /* Mark the item as fully known */ diff --git a/src/store.c b/src/store.c index 0387ba269..d0664496c 100644 --- a/src/store.c +++ b/src/store.c @@ -3937,7 +3937,6 @@ static void store_sell(void) /* Get the "apparent" value */ dummy = object_value(q_ptr) * q_ptr->number; - /* Identify it */ identify_item(o_ptr); q_ptr = &forge; @@ -4025,7 +4024,6 @@ static void store_sell(void) if (!get_check(format(_("本当に%sを寄贈しますか?", "Really give %s to the Museum? "), o2_name))) return; - /* Identify it */ identify_item(q_ptr); q_ptr->ident |= IDENT_MENTAL; -- 2.11.0