From 4d70514a84495abaedf689ff7b58a3c5d09ce95e Mon Sep 17 00:00:00 2001 From: Habu Date: Wed, 15 Sep 2021 06:38:39 +0900 Subject: [PATCH] =?utf8?q?[Fix]=20+2=E4=BB=A5=E4=B8=8A=E3=81=AE=E8=BF=BD?= =?utf8?q?=E5=8A=A0=E6=94=BB=E6=92=83=E3=81=AE=E9=8D=9B=E5=86=B6=E3=81=8C?= =?utf8?q?=E3=81=A7=E3=81=8D=E3=81=A6=E3=81=97=E3=81=BE=E3=81=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit リファクタリング時にpvalの判定の位置を誤ったため、追加攻撃の エッセンスを付与する時に個数を選べるようになってしまっていた。 そもそも数値の制限が必要かどうかをインターフェース処理側で 行っている設計がおかしいがそれは今後の課題とし、ひとまず 追加攻撃を付与する時はpvalが1に制限されるようにする。 --- src/mind/mind-weaponsmith.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mind/mind-weaponsmith.cpp b/src/mind/mind-weaponsmith.cpp index f8fe4a431..b286fbc46 100644 --- a/src/mind/mind-weaponsmith.cpp +++ b/src/mind/mind-weaponsmith.cpp @@ -471,8 +471,8 @@ static void add_essence(player_type *player_ptr, SmithCategory mode) if (o_ptr->pval < 0) { msg_print(_("このアイテムの能力修正を強化することはできない。", "You cannot increase magic number of this item.")); return; - } else if (effect_flags.has(TR_BLOWS) && o_ptr->pval > 1) { - if (!get_check(_("修正値は1になります。よろしいですか?", "The magic number of this weapon will become 1. Are you sure? "))) { + } else if (effect_flags.has(TR_BLOWS)) { + if ((o_ptr->pval > 1) && !get_check(_("修正値は1になります。よろしいですか?", "The magic number of this weapon will become 1. Are you sure? "))) { return; } o_ptr->pval = 1; -- 2.11.0