OSDN Git Service
(root)
/
hengband
/
hengband.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
e1a3459
)
Merge branch 'feature/apply-martial-arts-to-h' into feature/Fix-Calc-Slaying
author
deskull
<deskull@users.sourceforge.jp>
Fri, 29 Jan 2021 15:15:36 +0000
(
00:15
+0900)
committer
deskull
<deskull@users.sourceforge.jp>
Fri, 29 Jan 2021 15:15:36 +0000
(
00:15
+0900)
src/player/player-status.c
patch
|
blob
|
history
diff --git
a/src/player/player-status.c
b/src/player/player-status.c
index
6ba8eeb
..
01d979a
100644
(file)
--- 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);