• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision96294fe2d0171bcc22971fed35d61b6aa71ede9d (tree)
Time2019-06-04 23:00:12
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 モンスター呪文の定義を monster-spell.h へ移動.

Change Summary

Incremental Difference

--- a/src/defines.h
+++ b/src/defines.h
@@ -388,23 +388,6 @@
388388 #define have_dark_flag(ARRAY) \
389389 (have_flag(ARRAY, TR_LITE_M1) || have_flag(ARRAY, TR_LITE_M2) || have_flag(ARRAY, TR_LITE_M3))
390390
391-/* Spell Type flag */
392-#define MONSTER_TO_PLAYER 0x01
393-#define MONSTER_TO_MONSTER 0x02
394-
395-/* summoning number */
396-#define S_NUM_6 (easy_band ? 2 : 6)
397-#define S_NUM_4 (easy_band ? 1 : 4)
398-
399-/* monster spell number */
400-#define RF4_SPELL_START 32 * 3
401-#define RF5_SPELL_START 32 * 4
402-#define RF6_SPELL_START 32 * 5
403-
404-#define RF4_SPELL_SIZE 32
405-#define RF5_SPELL_SIZE 32
406-#define RF6_SPELL_SIZE 32
407-
408391 /* Cheat Info Type */
409392 #define CHEAT_OBJECT 0
410393 #define CHEAT_MONSTER 1
--- a/src/monster-spell.h
+++ b/src/monster-spell.h
@@ -14,6 +14,23 @@ struct monster_power
1414 concptr name;
1515 };
1616
17+/* Spell Type flag */
18+#define MONSTER_TO_PLAYER 0x01
19+#define MONSTER_TO_MONSTER 0x02
20+
21+/* summoning number */
22+#define S_NUM_6 (easy_band ? 2 : 6)
23+#define S_NUM_4 (easy_band ? 1 : 4)
24+
25+/* monster spell number */
26+#define RF4_SPELL_START 32 * 3
27+#define RF5_SPELL_START 32 * 4
28+#define RF6_SPELL_START 32 * 5
29+
30+#define RF4_SPELL_SIZE 32
31+#define RF5_SPELL_SIZE 32
32+#define RF6_SPELL_SIZE 32
33+
1734 /* Spell Damage Calc Flag*/
1835 #define DAM_ROLL 1
1936 #define DAM_MAX 2
Show on old repository browser