OSDN Git Service
(root)
/
hengbandforosx
/
hengbandosx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee92ca7
)
[Fix] #40514 calc_to_hit() 修正 / Fix calc_to_hit().
author
deskull
<deskull@users.sourceforge.jp>
Fri, 21 Aug 2020 17:21:43 +0000
(
02:21
+0900)
committer
deskull
<deskull@users.sourceforge.jp>
Fri, 21 Aug 2020 17:21:43 +0000
(
02:21
+0900)
src/player/player-status.c
patch
|
blob
|
history
diff --git
a/src/player/player-status.c
b/src/player/player-status.c
index
d6d4bdd
..
cee90c1
100644
(file)
--- a/
src/player/player-status.c
+++ b/
src/player/player-status.c
@@
-3181,9
+3181,6
@@
static s16b calc_to_hit(player_type *creature_ptr, INVENTORY_IDX slot)
bonus_to_h = (o_ptr->to_h + 1) / 2;
}
- if (object_is_known(o_ptr))
- creature_ptr->dis_to_h_b += (s16b)bonus_to_h;
-
if ((i == INVEN_LEFT || i == INVEN_RIGHT) && !have_two_handed_weapons(creature_ptr)) {
creature_ptr->to_h[i - INVEN_RIGHT] += (s16b)bonus_to_h;
continue;