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:
6f29888
)
[Refactor] #37353 cmd-basic.c の整形 / Reshaped cmd-basic.c
author
Hourier
<hourier@users.sourceforge.jp>
Sun, 5 Jan 2020 09:41:34 +0000
(18:41 +0900)
committer
Hourier
<hourier@users.sourceforge.jp>
Sun, 5 Jan 2020 09:41:34 +0000
(18:41 +0900)
src/cmd/cmd-basic.c
patch
|
blob
|
history
diff --git
a/src/cmd/cmd-basic.c
b/src/cmd/cmd-basic.c
index
5e1c5e9
..
1b664c9
100644
(file)
--- a/
src/cmd/cmd-basic.c
+++ b/
src/cmd/cmd-basic.c
@@
-756,7
+756,8
@@
static bool exe_open(player_type *creature_ptr, POSITION y, POSITION x)
if (creature_ptr->confused || creature_ptr->image) i = i / 10;
/* Extract the difficulty */
- int j = i - (j * 4);
+ int j = f_ptr->power;
+ j = i - (j * 4);
/* Always have a small chance of success */
if (j < 2) j = 2;