• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

変愚蛮怒のメインリポジトリです


Commit MetaInfo

Revisioncf7f4e390b09e66c6bac446742757d548c59327f (tree)
Time2019-06-18 23:14:16
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 create_ammo() の混乱,盲目状態制限を整理.

Change Summary

Incremental Difference

--- a/src/spells-object.c
+++ b/src/spells-object.c
@@ -2,6 +2,7 @@
22 #include "angband.h"
33 #include "util.h"
44
5+#include "cmd-basic.h"
56 #include "artifact.h"
67 #include "floor.h"
78 #include "grid.h"
@@ -84,17 +85,8 @@ bool create_ammo(void)
8485 else
8586 sprintf(com, _("[S]弾:", "Create [S]hots ?"));
8687
87- if (p_ptr->confused)
88- {
89- msg_print(_("混乱してる!", "You are too confused!"));
90- return FALSE;
91- }
92-
93- if (p_ptr->blind)
94- {
95- msg_print(_("目が見えない!", "You are blind!"));
96- return FALSE;
97- }
88+ if (cmd_limit_confused(p_ptr)) return FALSE;
89+ if (cmd_limit_blind(p_ptr)) return FALSE;
9890
9991 while (TRUE)
10092 {
Show on old repository browser