From c9ad62aea1854ec46e8e7c33ca01e80f47210fbc Mon Sep 17 00:00:00 2001 From: deskull Date: Sat, 30 Jan 2021 00:11:57 +0900 Subject: [PATCH] =?utf8?q?[Fix]=20#41190=20=E3=83=9E=E3=83=BC=E3=82=B7?= =?utf8?q?=E3=83=A3=E3=83=AB=E3=82=A2=E3=83=BC=E3=83=84=E3=81=AE=E6=8A=80?= =?utf8?q?=E8=83=BD=E5=80=A4=E3=81=8C=E5=91=BD=E4=B8=AD=E7=8E=87=E3=81=AB?= =?utf8?q?=E5=8F=8D=E6=98=A0=E3=81=95=E3=82=8C=E3=81=AA=E3=81=84=E4=B8=8D?= =?utf8?q?=E5=85=B7=E5=90=88=E4=BF=AE=E6=AD=A3=20/=E3=80=80=20Fixed=20a=20?= =?utf8?q?bug=20that=20martial=E3=80=80arts=20skill=20was=20not=20reflecte?= =?utf8?q?d=20in=20the=20hit=20rate.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/player/player-status.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/player/player-status.c b/src/player/player-status.c index 9d762551b..f6ec86816 100644 --- a/src/player/player-status.c +++ b/src/player/player-status.c @@ -3179,6 +3179,14 @@ static s16b calc_to_hit(player_type *creature_ptr, INVENTORY_IDX slot, bool is_t hit += (creature_ptr->lev / 3); } + if ((empty_hands(creature_ptr, FALSE) & EMPTY_HAND_RARM) && id == 0) { + hit += (p_ptr->skill_exp[GINOU_SUDE] - WEAPON_EXP_BEGINNER) / 200; + } + + if ((empty_hands(creature_ptr, FALSE) & EMPTY_HAND_LARM) && id == 1) { + hit += (p_ptr->skill_exp[GINOU_SUDE] - WEAPON_EXP_BEGINNER) / 200; + } + /* Two handed combat penalty */ hit -= calc_double_weapon_penalty(creature_ptr, slot); -- 2.11.0