OSDN Git Service
(root)
/
hengband
/
hengband.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e57f6b9
)
[Fix] #38946 reli値正でACが高い場合、命中が5%を下回るバグを修正。 / Fix under 5% hit rate bug on plus reli...
author
deskull
<deskull@users.sourceforge.jp>
Thu, 14 Mar 2019 15:05:42 +0000
(
00:05
+0900)
committer
deskull
<deskull@users.sourceforge.jp>
Thu, 14 Mar 2019 15:05:42 +0000
(
00:05
+0900)
src/melee1.c
patch
|
blob
|
history
diff --git
a/src/melee1.c
b/src/melee1.c
index
936a7f4
..
95e5446
100644
(file)
--- a/
src/melee1.c
+++ b/
src/melee1.c
@@
-52,10
+52,10
@@
bool test_hit_norm(HIT_RELIABILITY chance, ARMOUR_CLASS ac, bool visible)
PERCENTAGE hit_chance(HIT_RELIABILITY reli, ARMOUR_CLASS ac)
{
PERCENTAGE chance = 5, chance_left = 90;
- if
(reli <= 0) return 5;
- if
(p_ptr->pseikaku == SEIKAKU_NAMAKE) chance_left = (chance_left * 19 + 9) / 20;
+ if(reli <= 0) return 5;
+ if(p_ptr->pseikaku == SEIKAKU_NAMAKE) chance_left = (chance_left * 19 + 9) / 20;
chance += (100 - ((ac * 75) / reli)) * chance_left / 100;
-
+ if (chance < 5) chance = 5;
return chance;
}