OSDN Git Service

Merge branch 'feature/apply-martial-arts-to-h' into feature/Fix-Calc-Slaying
authordeskull <deskull@users.sourceforge.jp>
Fri, 29 Jan 2021 15:15:36 +0000 (00:15 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Fri, 29 Jan 2021 15:15:36 +0000 (00:15 +0900)
src/player/player-status.c

index 6ba8eeb..01d979a 100644 (file)
@@ -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);