OSDN Git Service

[Refactor] #37353 GF_* と gf_color を整理。
authordeskull <deskull@users.sourceforge.jp>
Tue, 16 Apr 2019 13:59:20 +0000 (22:59 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Tue, 16 Apr 2019 13:59:20 +0000 (22:59 +0900)
48 files changed:
src/chest.c
src/cmd-activate.c
src/cmd-mane.c
src/cmd-read.c
src/cmd-zaprod.c
src/cmd-zapwand.c
src/defines.h
src/dungeon.c
src/externs.h
src/files.c
src/grid.c
src/melee1.c
src/mind.c
src/monster-process.c
src/monster1.c
src/monster2.c
src/mspells1.c
src/mspells2.c
src/mspells3.c
src/mspells4.c
src/mutation.c
src/object-broken.c
src/patron.c
src/player-move.c
src/racial.c
src/realm-arcane.c
src/realm-chaos.c
src/realm-crusade.c
src/realm-daemon.c
src/realm-death.c
src/realm-hex.c
src/realm-hissatsu.c
src/realm-life.c
src/realm-nature.c
src/realm-song.c
src/realm-sorcery.c
src/realm-trump.c
src/shoot.c
src/spells.h
src/spells1.c
src/spells2.c
src/spells3.c
src/tables.c
src/term.c
src/term.h
src/trap.c
src/variable.c
src/warning.c

index 7855b16..c7728f7 100644 (file)
@@ -1,5 +1,6 @@
 
 #include "angband.h"
+#include "spells.h"
 #include "spells-summon.h"
 #include "floor.h"
 #include "trap.h"
index f32b11d..3d7a372 100644 (file)
@@ -13,6 +13,7 @@
 #include "sort.h"
 #include "artifact.h"
 #include "avatar.h"
+#include "spells.h"
 #include "spells-summon.h"
 #include "spells-status.h"
 #include "spells-object.h"
index d97ecbd..dc1d442 100644 (file)
@@ -13,6 +13,7 @@
 #include "angband.h"
 #include "floor.h"
 #include "grid.h"
+#include "spells.h"
 #include "spells-summon.h"
 #include "spells-status.h"
 #include "monster-spell.h"
index 91c70a5..b335dfa 100644 (file)
@@ -14,6 +14,7 @@
 #include "rumor.h"
 #include "realm-hex.h"
 
+#include "spells.h"
 #include "spells-object.h"
 #include "spells-floor.h"
 #include "spells-summon.h"
index 595747a..862bb60 100644 (file)
@@ -3,6 +3,7 @@
 #include "spells-status.h"
 #include "player-status.h"
 #include "object-hook.h"
+#include "spells.h"
 
 /*!
  * @brief ロッドの効果を発動する
index dcef6b1..6528b76 100644 (file)
@@ -1,5 +1,6 @@
 #include "angband.h"
 #include "avatar.h"
+#include "spells.h"
 #include "spells-status.h"
 #include "player-status.h"
 #include "object-hook.h"
index e049fe2..90cdeee 100644 (file)
 
 
 /*
- * Spell types used by project(), and related functions.
- */
-#define GF_ELEC         1                      /*!< 魔法効果: 電撃*/
-#define GF_POIS         2                      /*!< 魔法効果: 毒*/
-#define GF_ACID         3                      /*!< 魔法効果: 酸*/
-#define GF_COLD         4                      /*!< 魔法効果: 冷気*/
-#define GF_FIRE         5                      /*!< 魔法効果: 火炎*/
-#define GF_PSY_SPEAR    9                      /*!< 魔法効果: 光の剣*/
-#define GF_MISSILE      10                     /*!< 魔法効果: 弱魔力*/
-#define GF_ARROW        11                     /*!< 魔法効果: 射撃*/
-#define GF_PLASMA       12                     /*!< 魔法効果: プラズマ*/
-/* Replaced with GF_HOLY_FIRE and GF_HELL_FIRE */
-/* #define GF_HOLY_ORB     13 */
-#define GF_WATER        14                     /*!< 魔法効果: 水流*/
-#define GF_LITE         15                     /*!< 魔法効果: 閃光*/
-#define GF_DARK         16                     /*!< 魔法効果: 暗黒*/
-#define GF_LITE_WEAK    17                     /*!< 魔法効果: 弱光*/
-#define GF_DARK_WEAK    18                     /*!< 魔法効果: 弱暗*/
-#define GF_SHARDS       20                     /*!< 魔法効果: 破片*/
-#define GF_SOUND        21                     /*!< 魔法効果: 轟音*/
-#define GF_CONFUSION    22                     /*!< 魔法効果: 混乱*/
-#define GF_FORCE        23                     /*!< 魔法効果: フォース*/
-#define GF_INERTIAL     24                     /*!< 魔法効果: 遅鈍*/
-#define GF_MANA         26                     /*!< 魔法効果: 純粋魔力*/
-#define GF_METEOR       27                     /*!< 魔法効果: 隕石*/
-#define GF_ICE          28                     /*!< 魔法効果: 極寒*/
-#define GF_CHAOS        30                     /*!< 魔法効果: カオス*/
-#define GF_NETHER       31                     /*!< 魔法効果: 地獄*/
-#define GF_DISENCHANT   32                     /*!< 魔法効果: 劣化*/
-#define GF_NEXUS        33                     /*!< 魔法効果: 因果混乱*/
-#define GF_TIME         34                     /*!< 魔法効果: 時間逆転*/
-#define GF_GRAVITY      35                     /*!< 魔法効果: 重力*/
-#define GF_KILL_WALL    40                     /*!< 魔法効果: 岩石溶解*/
-#define GF_KILL_DOOR    41                     /*!< 魔法効果: ドア破壊*/
-#define GF_KILL_TRAP    42                     /*!< 魔法効果: トラップ破壊*/
-#define GF_MAKE_WALL    45                     /*!< 魔法効果: 壁生成*/
-#define GF_MAKE_DOOR    46                     /*!< 魔法効果: ドア生成*/
-#define GF_MAKE_TRAP    47                     /*!< 魔法効果: トラップ生成*/
-#define GF_MAKE_TREE    48                     /*!< 魔法効果: 森林生成*/
-#define GF_OLD_CLONE    51                     /*!< 魔法効果: クローン・モンスター*/
-#define GF_OLD_POLY     52                     /*!< 魔法効果: チェンジ・モンスター*/
-#define GF_OLD_HEAL     53                     /*!< 魔法効果: 回復モンスター*/
-#define GF_OLD_SPEED    54                     /*!< 魔法効果: スピード・モンスター*/
-#define GF_OLD_SLOW     55                     /*!< 魔法効果: スロウ・モンスター*/
-#define GF_OLD_CONF     56                     /*!< 魔法効果: パニック・モンスター*/
-#define GF_OLD_SLEEP    57                     /*!< 魔法効果: スリープ・モンスター*/
-#define GF_HYPODYNAMIA  58                     /*!< 魔法効果: 衰弱*/
-#define GF_AWAY_UNDEAD  61                     /*!< 魔法効果: アンデッド・アウェイ*/
-#define GF_AWAY_EVIL    62                     /*!< 魔法効果: 邪悪飛ばし*/
-#define GF_AWAY_ALL     63                     /*!< 魔法効果: テレポート・アウェイ*/
-#define GF_TURN_UNDEAD  64                     /*!< 魔法効果: アンデッド恐慌*/
-#define GF_TURN_EVIL    65                     /*!< 魔法効果: 邪悪恐慌*/
-#define GF_TURN_ALL     66                     /*!< 魔法効果: モンスター恐慌*/
-#define GF_DISP_UNDEAD  67                     /*!< 魔法効果: アンデッド退散*/
-#define GF_DISP_EVIL    68                     /*!< 魔法効果: 邪悪退散*/
-#define GF_DISP_ALL     69                     /*!< 魔法効果: モンスター退散*/
-/* New types for Zangband begin here... */
-#define GF_DISP_DEMON      70          /*!< 魔法効果: 悪魔退散*/
-#define GF_DISP_LIVING     71          /*!< 魔法効果: 生命退散*/
-#define GF_ROCKET          72          /*!< 魔法効果: ロケット*/
-#define GF_NUKE            73          /*!< 魔法効果: 放射性廃棄物*/
-#define GF_MAKE_GLYPH      74          /*!< 魔法効果: 守りのルーン生成*/
-#define GF_STASIS          75          /*!< 魔法効果: モンスター拘束*/
-#define GF_STONE_WALL      76          /*!< 魔法効果: 壁生成*/
-#define GF_DEATH_RAY       77          /*!< 魔法効果: 死の光線*/
-#define GF_STUN            78          /*!< 魔法効果: 朦朧*/
-#define GF_HOLY_FIRE       79          /*!< 魔法効果: 聖光*/
-#define GF_HELL_FIRE       80          /*!< 魔法効果: 地獄の劫火*/
-#define GF_DISINTEGRATE    81          /*!< 魔法効果: 分解*/
-#define GF_CHARM           82          /*!< 魔法効果: モンスター魅了*/
-#define GF_CONTROL_UNDEAD  83          /*!< 魔法効果: アンデッド支配*/
-#define GF_CONTROL_ANIMAL  84          /*!< 魔法効果: 動物支配*/
-#define GF_PSI             85          /*!< 魔法効果: サイキック攻撃*/
-#define GF_PSI_DRAIN       86          /*!< 魔法効果: 精神吸収*/
-#define GF_TELEKINESIS     87          /*!< 魔法効果: テレキシネス*/
-#define GF_JAM_DOOR        88          /*!< 魔法効果: 施錠*/
-#define GF_DOMINATION      89          /*!< 魔法効果: 精神支配*/
-#define GF_DISP_GOOD       90          /*!< 魔法効果: 善良退散*/
-#define GF_DRAIN_MANA      91          /*!< 魔法効果: 魔力吸収*/
-#define GF_MIND_BLAST      92          /*!< 魔法効果: 精神攻撃*/
-#define GF_BRAIN_SMASH     93          /*!< 魔法効果: 脳攻撃*/
-#define GF_CAUSE_1         94          /*!< 魔法効果: 軽傷の呪い*/
-#define GF_CAUSE_2         95          /*!< 魔法効果: 重傷の呪い*/
-#define GF_CAUSE_3         96          /*!< 魔法効果: 致命傷の呪い*/
-#define GF_CAUSE_4         97          /*!< 魔法効果: 秘孔を突く*/
-#define GF_HAND_DOOM       98          /*!< 魔法効果: 破滅の手*/
-#define GF_CAPTURE         99          /*!< 魔法効果: 捕縛*/
-#define GF_ANIM_DEAD      100          /*!< 魔法効果: 死者復活*/
-#define GF_CHARM_LIVING   101          /*!< 魔法効果: 生命魅了*/
-#define GF_IDENTIFY       102          /*!< 魔法効果: 鑑定*/
-#define GF_ATTACK         103          /*!< 魔法効果: 白兵*/
-#define GF_ENGETSU        104          /*!< 魔法効果: 円月*/
-#define GF_GENOCIDE       105          /*!< 魔法効果: 抹殺*/
-#define GF_PHOTO          106          /*!< 魔法効果: 撮影*/
-#define GF_CONTROL_DEMON  107          /*!< 魔法効果: 悪魔支配*/
-#define GF_LAVA_FLOW      108          /*!< 魔法効果: 溶岩噴出*/
-#define GF_BLOOD_CURSE    109          /*!< 魔法効果: 血の呪い*/
-#define GF_SEEKER         110          /*!< 魔法効果: シーカーレイ*/
-#define GF_SUPER_RAY      111          /*!< 魔法効果: スーパーレイ*/
-#define GF_STAR_HEAL      112          /*!< 魔法効果: 星の癒し*/
-#define GF_WATER_FLOW     113          /*!< 魔法効果: 流水*/
-#define GF_CRUSADE        114          /*!< 魔法効果: 聖戦*/
-#define GF_STASIS_EVIL    115          /*!< 魔法効果: 邪悪拘束*/
-#define GF_WOUNDS         116          /*!< 魔法効果: 創傷*/
-
-#define MAX_GF         117
-
-/*
  * Some things which induce learning
  */
 #define DRS_ACID         1
index bcb97be..583d7ad 100644 (file)
@@ -29,6 +29,7 @@
 #include "grid.h"
 #include "object-curse.h"
 #include "store.h"
+#include "spells.h"
 #include "spells-summon.h"
 #include "spells-object.h"
 #include "spells-status.h"
index 651af8b..0df1dc9 100644 (file)
@@ -310,7 +310,6 @@ extern DUNGEON_IDX max_d_idx;
 extern quest_type *quest;
 extern char quest_text[10][80];
 extern int quest_text_line;
-extern TERM_COLOR gf_color[MAX_GF];
 extern int init_flags;
 extern int highscore_fd;
 extern bool can_save;
index ba7f05b..f25e50c 100644 (file)
@@ -30,6 +30,8 @@
 #include "object-hook.h"
 #include "realm-hex.h"
 #include "cmd-pet.h"
+#include "spells.h"
+#include "term.h"
 
 
 /*
index 1b7d90c..b558aba 100644 (file)
@@ -30,6 +30,7 @@
 #include "feature.h"
 #include "monster-status.h"
 #include "player-status.h"
+#include "spells.h"
 
 static byte display_autopick; /*!< 自動拾い状態の設定フラグ */
 static int match_autopick;
index 97210ad..cf4c587 100644 (file)
@@ -27,6 +27,7 @@
 #include "grid.h"
 #include "player-move.h"
 #include "floor.h"
+#include "spells.h"
 
 
 
index c02312a..21b0339 100644 (file)
@@ -17,6 +17,7 @@
 #include "angband.h"
 #include "floor.h"
 #include "melee.h"
+#include "spells.h"
 #include "spells-summon.h"
 #include "avatar.h"
 #include "player-move.h"
index 708d911..c86b46e 100644 (file)
@@ -17,6 +17,7 @@
 #include "cmd-pet.h"
 #include "monsterrace-hook.h"
 #include "melee.h"
+#include "spells.h"
 #include "spells-summon.h"
 #include "quest.h"
 #include "avatar.h"
index f9921bd..b67086b 100644 (file)
@@ -23,6 +23,7 @@
 #include "artifact.h"
 #include "avatar.h"
 #include "wild.h"
+#include "spells.h"
 
 
 /*
index 66d789a..6fdfb36 100644 (file)
@@ -16,6 +16,7 @@
 #include "monsterrace-hook.h"
 #include "monster-status.h"
 #include "monster.h"
+#include "spells.h"
 #include "spells-summon.h"
 #include "quest.h"
 #include "grid.h"
index a0cd4f4..a5b4289 100644 (file)
@@ -48,6 +48,7 @@
 #include "player-status.h"
 #include "monster.h"
 #include "monster-spell.h"
+#include "spells.h"
 
 
 /*!
index 4371d40..80998ff 100644 (file)
@@ -21,6 +21,7 @@
 #include "monster.h"
 #include "monster-status.h"
 #include "monster-spell.h"
+#include "spells.h"
 
 /*!
  * @brief モンスターが敵対モンスターにビームを当てること可能かを判定する /
index faddf3c..ba2f695 100644 (file)
@@ -19,6 +19,7 @@
 #include "cmd-spell.h"
 #include "player-status.h"
 #include "monster-spell.h"
+#include "spells.h"
 
 #define pseudo_plev() (((p_ptr->lev + 40) * (p_ptr->lev + 40) - 1550) / 130) /*!< モンスター魔法をプレイヤーが使用する場合の換算レベル */
 
index a95e12a..92ce8df 100644 (file)
@@ -15,6 +15,7 @@
 #include "realm-hex.h"
 #include "player-move.h"
 #include "monster-spell.h"
+#include "spells.h"
 
 
 /*!
index f838cd0..b347d65 100644 (file)
@@ -20,6 +20,7 @@
 #include "player-status.h"
 #include "spells-status.h"
 #include "object-hook.h"
+#include "spells.h"
 
 /*!
  * @brief プレイヤーに突然変異を与える
index d883c11..3a4f936 100644 (file)
@@ -1,4 +1,5 @@
 #include "angband.h"
+#include "spells.h"
 
 /*!
  * @brief 薬の破損効果処理 /
index ba3306d..ac17923 100644 (file)
@@ -10,6 +10,7 @@
 #include "artifact.h"
 #include "player-status.h"
 
+#include "spells.h"
 #include "spells-summon.h"
 #include "spells-object.h"
 #include "spells-status.h"
index e977e14..135e2bb 100644 (file)
 #include "monster.h"
 #include "monster-spell.h"
 #include "object-hook.h"
+#include "spells.h"
 
 
 
index c1a972e..fff1621 100644 (file)
@@ -23,6 +23,7 @@
 #include "spells-status.h"
 #include "spells-object.h"
 #include "spells-floor.h"
+#include "spells.h"
 #include "cmd-spell.h"
 #include "realm-hex.h"
 
index c6e6b08..1a65f3a 100644 (file)
@@ -2,6 +2,7 @@
 #include "cmd-spell.h"
 #include "avatar.h"
 
+#include "spells.h"
 #include "spells-floor.h"
 #include "spells-object.h"
 #include "spells-summon.h"
index 81f4180..6f97a2d 100644 (file)
@@ -2,6 +2,7 @@
 #include "cmd-spell.h"
 #include "spells-summon.h"
 #include "spells-status.h"
+#include "spells.h"
 
 /*!
 * @brief カオス領域魔法の各処理を行う
index b1b36a7..fb5a9a4 100644 (file)
@@ -1,6 +1,7 @@
 #include "angband.h"
 #include "cmd-spell.h"
 #include "floor.h"
+#include "spells.h"
 #include "spells-summon.h"
 #include "spells-status.h"
 
index 44c1ffe..b4bae16 100644 (file)
@@ -1,6 +1,7 @@
 
 #include "angband.h"
 #include "cmd-spell.h"
+#include "spells.h"
 #include "spells-summon.h"
 #include "spells-status.h"
 
index e030c0a..86faf7c 100644 (file)
@@ -1,5 +1,6 @@
 #include "angband.h"
 #include "cmd-spell.h"
+#include "spells.h"
 #include "spells-summon.h"
 #include "spells-status.h"
 #include "avatar.h"
index 41c6e0e..ae387a1 100644 (file)
@@ -22,6 +22,7 @@
 #include "object-hook.h"
 #include "object-curse.h"
 #include "spells-status.h"
+#include "spells.h"
 #include "player-status.h"
 #include "realm-hex.h"
 #include "grid.h"
index 45c0522..6cdfc3e 100644 (file)
@@ -8,6 +8,7 @@
 #include "player-move.h"
 #include "player-status.h"
 #include "feature.h"
+#include "spells.h"
 
 /*!
 * @brief 剣術の各処理を行う
index cfd9098..ca363a4 100644 (file)
@@ -2,6 +2,7 @@
 #include "cmd-spell.h"
 #include "spells-status.h"
 #include "spells-floor.h"
+#include "spells.h"
 #include "player-status.h"
 
 /*!
index 719af9e..5ee79b6 100644 (file)
@@ -1,5 +1,6 @@
 #include "angband.h"
 #include "cmd-spell.h"
+#include "spells.h"
 #include "spells-summon.h"
 #include "spells-status.h"
 #include "spells-object.h"
index da3c54d..d35ede0 100644 (file)
@@ -1,5 +1,6 @@
 #include "angband.h"
 #include "cmd-spell.h"
+#include "spells.h"
 #include "spells-status.h"
 #include "spells-floor.h"
 
index 3865c94..f7c906f 100644 (file)
@@ -2,6 +2,8 @@
 #include "cmd-spell.h"
 #include "selfinfo.h"
 #include "avatar.h"
+
+#include "spells.h"
 #include "spells-status.h"
 #include "spells-floor.h"
 
index 03d2b44..6874dbe 100644 (file)
@@ -1,7 +1,8 @@
 #include "angband.h"
 #include "cmd-spell.h"
-#include "spells-summon.h"
 #include "mutation.h"
+#include "spells.h"
+#include "spells-summon.h"
 #include "spells-status.h"
 
 
index 27596bb..ab06d49 100644 (file)
@@ -8,6 +8,7 @@
 #include "object-hook.h"
 #include "floor.h"
 #include "grid.h"
+#include "spells.h"
 
 #include "shoot.h"
 
index 23e23f8..a867030 100644 (file)
@@ -4,3 +4,110 @@
 #define SPOP_NO_UPDATE      0x0002 // !< スペル処理オプション … ステータス更新を解決後行う
 #define SPOP_DEBUG          0x8000 // !< スペル処理オプション … デバッグ処理あり
 
+/*
+ * Spell types used by project(), and related functions.
+ */
+#define GF_ELEC         1                      /*!< 魔法効果: 電撃*/
+#define GF_POIS         2                      /*!< 魔法効果: 毒*/
+#define GF_ACID         3                      /*!< 魔法効果: 酸*/
+#define GF_COLD         4                      /*!< 魔法効果: 冷気*/
+#define GF_FIRE         5                      /*!< 魔法効果: 火炎*/
+#define GF_PSY_SPEAR    9                      /*!< 魔法効果: 光の剣*/
+#define GF_MISSILE      10                     /*!< 魔法効果: 弱魔力*/
+#define GF_ARROW        11                     /*!< 魔法効果: 射撃*/
+#define GF_PLASMA       12                     /*!< 魔法効果: プラズマ*/
+ /* Replaced with GF_HOLY_FIRE and GF_HELL_FIRE */
+ /* #define GF_HOLY_ORB     13 */
+#define GF_WATER        14                     /*!< 魔法効果: 水流*/
+#define GF_LITE         15                     /*!< 魔法効果: 閃光*/
+#define GF_DARK         16                     /*!< 魔法効果: 暗黒*/
+#define GF_LITE_WEAK    17                     /*!< 魔法効果: 弱光*/
+#define GF_DARK_WEAK    18                     /*!< 魔法効果: 弱暗*/
+#define GF_SHARDS       20                     /*!< 魔法効果: 破片*/
+#define GF_SOUND        21                     /*!< 魔法効果: 轟音*/
+#define GF_CONFUSION    22                     /*!< 魔法効果: 混乱*/
+#define GF_FORCE        23                     /*!< 魔法効果: フォース*/
+#define GF_INERTIAL     24                     /*!< 魔法効果: 遅鈍*/
+#define GF_MANA         26                     /*!< 魔法効果: 純粋魔力*/
+#define GF_METEOR       27                     /*!< 魔法効果: 隕石*/
+#define GF_ICE          28                     /*!< 魔法効果: 極寒*/
+#define GF_CHAOS        30                     /*!< 魔法効果: カオス*/
+#define GF_NETHER       31                     /*!< 魔法効果: 地獄*/
+#define GF_DISENCHANT   32                     /*!< 魔法効果: 劣化*/
+#define GF_NEXUS        33                     /*!< 魔法効果: 因果混乱*/
+#define GF_TIME         34                     /*!< 魔法効果: 時間逆転*/
+#define GF_GRAVITY      35                     /*!< 魔法効果: 重力*/
+#define GF_KILL_WALL    40                     /*!< 魔法効果: 岩石溶解*/
+#define GF_KILL_DOOR    41                     /*!< 魔法効果: ドア破壊*/
+#define GF_KILL_TRAP    42                     /*!< 魔法効果: トラップ破壊*/
+#define GF_MAKE_WALL    45                     /*!< 魔法効果: 壁生成*/
+#define GF_MAKE_DOOR    46                     /*!< 魔法効果: ドア生成*/
+#define GF_MAKE_TRAP    47                     /*!< 魔法効果: トラップ生成*/
+#define GF_MAKE_TREE    48                     /*!< 魔法効果: 森林生成*/
+#define GF_OLD_CLONE    51                     /*!< 魔法効果: クローン・モンスター*/
+#define GF_OLD_POLY     52                     /*!< 魔法効果: チェンジ・モンスター*/
+#define GF_OLD_HEAL     53                     /*!< 魔法効果: 回復モンスター*/
+#define GF_OLD_SPEED    54                     /*!< 魔法効果: スピード・モンスター*/
+#define GF_OLD_SLOW     55                     /*!< 魔法効果: スロウ・モンスター*/
+#define GF_OLD_CONF     56                     /*!< 魔法効果: パニック・モンスター*/
+#define GF_OLD_SLEEP    57                     /*!< 魔法効果: スリープ・モンスター*/
+#define GF_HYPODYNAMIA  58                     /*!< 魔法効果: 衰弱*/
+#define GF_AWAY_UNDEAD  61                     /*!< 魔法効果: アンデッド・アウェイ*/
+#define GF_AWAY_EVIL    62                     /*!< 魔法効果: 邪悪飛ばし*/
+#define GF_AWAY_ALL     63                     /*!< 魔法効果: テレポート・アウェイ*/
+#define GF_TURN_UNDEAD  64                     /*!< 魔法効果: アンデッド恐慌*/
+#define GF_TURN_EVIL    65                     /*!< 魔法効果: 邪悪恐慌*/
+#define GF_TURN_ALL     66                     /*!< 魔法効果: モンスター恐慌*/
+#define GF_DISP_UNDEAD  67                     /*!< 魔法効果: アンデッド退散*/
+#define GF_DISP_EVIL    68                     /*!< 魔法効果: 邪悪退散*/
+#define GF_DISP_ALL     69                     /*!< 魔法効果: モンスター退散*/
+/* New types for Zangband begin here... */
+#define GF_DISP_DEMON      70          /*!< 魔法効果: 悪魔退散*/
+#define GF_DISP_LIVING     71          /*!< 魔法効果: 生命退散*/
+#define GF_ROCKET          72          /*!< 魔法効果: ロケット*/
+#define GF_NUKE            73          /*!< 魔法効果: 放射性廃棄物*/
+#define GF_MAKE_GLYPH      74          /*!< 魔法効果: 守りのルーン生成*/
+#define GF_STASIS          75          /*!< 魔法効果: モンスター拘束*/
+#define GF_STONE_WALL      76          /*!< 魔法効果: 壁生成*/
+#define GF_DEATH_RAY       77          /*!< 魔法効果: 死の光線*/
+#define GF_STUN            78          /*!< 魔法効果: 朦朧*/
+#define GF_HOLY_FIRE       79          /*!< 魔法効果: 聖光*/
+#define GF_HELL_FIRE       80          /*!< 魔法効果: 地獄の劫火*/
+#define GF_DISINTEGRATE    81          /*!< 魔法効果: 分解*/
+#define GF_CHARM           82          /*!< 魔法効果: モンスター魅了*/
+#define GF_CONTROL_UNDEAD  83          /*!< 魔法効果: アンデッド支配*/
+#define GF_CONTROL_ANIMAL  84          /*!< 魔法効果: 動物支配*/
+#define GF_PSI             85          /*!< 魔法効果: サイキック攻撃*/
+#define GF_PSI_DRAIN       86          /*!< 魔法効果: 精神吸収*/
+#define GF_TELEKINESIS     87          /*!< 魔法効果: テレキシネス*/
+#define GF_JAM_DOOR        88          /*!< 魔法効果: 施錠*/
+#define GF_DOMINATION      89          /*!< 魔法効果: 精神支配*/
+#define GF_DISP_GOOD       90          /*!< 魔法効果: 善良退散*/
+#define GF_DRAIN_MANA      91          /*!< 魔法効果: 魔力吸収*/
+#define GF_MIND_BLAST      92          /*!< 魔法効果: 精神攻撃*/
+#define GF_BRAIN_SMASH     93          /*!< 魔法効果: 脳攻撃*/
+#define GF_CAUSE_1         94          /*!< 魔法効果: 軽傷の呪い*/
+#define GF_CAUSE_2         95          /*!< 魔法効果: 重傷の呪い*/
+#define GF_CAUSE_3         96          /*!< 魔法効果: 致命傷の呪い*/
+#define GF_CAUSE_4         97          /*!< 魔法効果: 秘孔を突く*/
+#define GF_HAND_DOOM       98          /*!< 魔法効果: 破滅の手*/
+#define GF_CAPTURE         99          /*!< 魔法効果: 捕縛*/
+#define GF_ANIM_DEAD      100          /*!< 魔法効果: 死者復活*/
+#define GF_CHARM_LIVING   101          /*!< 魔法効果: 生命魅了*/
+#define GF_IDENTIFY       102          /*!< 魔法効果: 鑑定*/
+#define GF_ATTACK         103          /*!< 魔法効果: 白兵*/
+#define GF_ENGETSU        104          /*!< 魔法効果: 円月*/
+#define GF_GENOCIDE       105          /*!< 魔法効果: 抹殺*/
+#define GF_PHOTO          106          /*!< 魔法効果: 撮影*/
+#define GF_CONTROL_DEMON  107          /*!< 魔法効果: 悪魔支配*/
+#define GF_LAVA_FLOW      108          /*!< 魔法効果: 溶岩噴出*/
+#define GF_BLOOD_CURSE    109          /*!< 魔法効果: 血の呪い*/
+#define GF_SEEKER         110          /*!< 魔法効果: シーカーレイ*/
+#define GF_SUPER_RAY      111          /*!< 魔法効果: スーパーレイ*/
+#define GF_STAR_HEAL      112          /*!< 魔法効果: 星の癒し*/
+#define GF_WATER_FLOW     113          /*!< 魔法効果: 流水*/
+#define GF_CRUSADE        114          /*!< 魔法効果: 聖戦*/
+#define GF_STASIS_EVIL    115          /*!< 魔法効果: 邪悪拘束*/
+#define GF_WOUNDS         116          /*!< 魔法効果: 創傷*/
+
+#define MAX_GF         117
index e1034d4..ecb3bbc 100644 (file)
@@ -21,6 +21,7 @@
 #include "monster.h"
 #include "monster-status.h"
 #include "monster-spell.h"
+#include "spells.h"
 #include "spells-status.h"
 #include "spells-diceroll.h"
 #include "spells-summon.h"
index 5c9768f..cd49da2 100644 (file)
@@ -19,6 +19,7 @@
 #include "monsterrace-hook.h"
 #include "melee.h"
 #include "world.h"
+#include "spells.h"
 #include "spells-summon.h"
 #include "mutation.h"
 #include "quest.h"
index 04b3e85..39cb537 100644 (file)
@@ -22,6 +22,7 @@
 #include "quest.h"
 #include "artifact.h"
 #include "avatar.h"
+#include "spells.h"
 #include "spells-floor.h"
 #include "grid.h"
 #include "monster-status.h"
index 66178a5..bec4351 100644 (file)
@@ -13,6 +13,7 @@
 
 
 #include "angband.h"
+#include "spells.h"
 
 /*!
  * キーパッドの方向を南から反時計回り順に列挙 / Global array for looping through the "keypad directions"
index 2f27f99..9ab58e9 100644 (file)
@@ -1,5 +1,11 @@
 #include "angband.h"
 #include "term.h"
+#include "spells.h"
+
+/*
+ * Default spell color table (quark index)
+ */
+TERM_COLOR gf_color[MAX_GF];
 
 /*!
  * @brief 万色表現用にランダムな色を選択する関数 /
index 162eb5d..2effc62 100644 (file)
@@ -1,5 +1,9 @@
 #pragma once
 
+#include "spells.h"
+
 TERM_COLOR mh_attr(int max);
 TERM_COLOR spell_color(EFFECT_ID type);
 u16b bolt_pict(POSITION y, POSITION x, POSITION ny, POSITION nx, EFFECT_ID typ);
+
+extern TERM_COLOR gf_color[MAX_GF];
index 56974a1..d6df25b 100644 (file)
@@ -9,6 +9,7 @@
 #include "feature.h"
 #include "player-status.h"
 #include "grid.h"
+#include "spells.h"
 
 static s16b normal_traps[MAX_NORMAL_TRAPS];
 
index 5668b7b..ef0a708 100644 (file)
@@ -728,11 +728,6 @@ char quest_text[10][80];
 int quest_text_line;
 
 /*
- * Default spell color table (quark index)
- */
-TERM_COLOR gf_color[MAX_GF];
-
-/*
  * Flags for initialization
  */
 int init_flags;
index 7f1b0e9..fa21864 100644 (file)
@@ -9,6 +9,7 @@
 #include "player-status.h"
 #include "monster.h"
 #include "monster-spell.h"
+#include "spells.h"
 
 /*!
  * @brief 警告を放つアイテムを選択する /