From: deskull Date: Fri, 29 Jan 2021 15:15:36 +0000 (+0900) Subject: Merge branch 'feature/apply-martial-arts-to-h' into feature/Fix-Calc-Slaying X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=ba1f4f672d76fe7a6e5ca9055fd19c9450cda480;hp=e1a3459660bbfa6c05e8d8531fecb5a040df13b3;p=hengband%2Fhengband.git Merge branch 'feature/apply-martial-arts-to-h' into feature/Fix-Calc-Slaying --- diff --git a/src/player/player-status.c b/src/player/player-status.c index 6ba8eeb83..01d979a76 100644 --- a/src/player/player-status.c +++ b/src/player/player-status.c @@ -3249,6 +3249,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);