OSDN Git Service

[Refactor] #37353 cmd-basic.c の整形 / Reshaped cmd-basic.c
authorHourier <hourier@users.sourceforge.jp>
Sun, 5 Jan 2020 09:41:34 +0000 (18:41 +0900)
committerHourier <hourier@users.sourceforge.jp>
Sun, 5 Jan 2020 09:41:34 +0000 (18:41 +0900)
src/cmd/cmd-basic.c

index 5e1c5e9..1b664c9 100644 (file)
@@ -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;