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:
400a410
)
なまけものは打撃攻撃にペナルティを受けてなかったので射撃と同様外れやすくした。また、なまけものはトラップにかかり*にくく*なっていたので、かかりやすくした。
author
habu
<habu@0568b783-4c39-0410-ac80-bf13821ea2a2>
Tue, 26 Feb 2002 17:16:02 +0000
(17:16 +0000)
committer
habu
<habu@0568b783-4c39-0410-ac80-bf13821ea2a2>
Tue, 26 Feb 2002 17:16:02 +0000
(17:16 +0000)
恐らく、check_hitが打撃の命中判定だと思ってコードを書いたためにこのような事になっていたのだろう。
src/cmd1.c
patch
|
blob
|
history
diff --git
a/src/cmd1.c
b/src/cmd1.c
index
492b633
..
3d03b0c
100644
(file)
--- a/
src/cmd1.c
+++ b/
src/cmd1.c
@@
-61,6
+61,9
@@
bool test_hit_norm(int chance, int ac, int vis)
/* Hack -- Instant miss or hit */
if (k < 10) return (k < 5);
+ if (p_ptr->pseikaku == SEIKAKU_NAMAKE)
+ if (one_in_(20)) return (FALSE);
+
/* Wimpy attack never hits */
if (chance <= 0) return (FALSE);
@@
-1588,7
+1591,7
@@
static int check_hit(int power)
if (k < 10) return (k < 5);
if (p_ptr->pseikaku == SEIKAKU_NAMAKE)
- if (one_in_(20)) return (
FALS
E);
+ if (one_in_(20)) return (
TRU
E);
/* Paranoia -- No power */
if (power <= 0) return (FALSE);