• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revisiona151ef8ef13e77bd41aaf6920e2ba1243696acb1 (tree)
Time2019-05-25 19:00:45
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 SPELL_* 定義を cmd-spell.h へ移動.

Change Summary

Incremental Difference

--- a/src/cmd-spell.c
+++ b/src/cmd-spell.c
@@ -9,6 +9,7 @@
99 #include "angband.h"
1010 #include "core.h"
1111 #include "util.h"
12+#include "cmd-spell.h"
1213
1314 #include "cmd-dump.h"
1415 #include "selfinfo.h"
--- a/src/cmd-spell.h
+++ b/src/cmd-spell.h
@@ -9,6 +9,14 @@
99
1010 extern const u32b fake_spell_flags[4];
1111
12+
13+#define SPELL_NAME 0
14+#define SPELL_DESC 1
15+#define SPELL_INFO 2
16+#define SPELL_CAST 3
17+#define SPELL_FAIL 4
18+#define SPELL_STOP 5
19+#define SPELL_CONT 6
1220 extern concptr do_spell(REALM_IDX realm, SPELL_IDX spell, BIT_FLAGS mode);
1321
1422 extern concptr info_string_dice(concptr str, DICE_NUMBER dice, DICE_SID sides, int base);
--- a/src/defines.h
+++ b/src/defines.h
@@ -279,19 +279,6 @@
279279 #define REALM1_BOOK (p_ptr->realm1 + TV_LIFE_BOOK - 1)
280280 #define REALM2_BOOK (p_ptr->realm2 + TV_LIFE_BOOK - 1)
281281
282-
283-/*
284- * Mode constant for do_spell()
285- */
286-#define SPELL_NAME 0
287-#define SPELL_DESC 1
288-#define SPELL_INFO 2
289-#define SPELL_CAST 3
290-#define SPELL_FAIL 4
291-#define SPELL_STOP 5
292-#define SPELL_CONT 6
293-
294-
295282 /*
296283 * Maximum number of "normal" pack slots, and the index of the "overflow"
297284 * slot, which can hold an item, but only temporarily, since it causes the
Show on old repository browser