OSDN Git Service

[Refactor] #37353 キーワード定義修正。 / Redefine keywords.
[hengband/hengband.git] / src / realm-chaos.c
index 2eecfe0..a994114 100644 (file)
@@ -1,6 +1,8 @@
 #include "angband.h"
 #include "cmd-spell.h"
 #include "spells-summon.h"
+#include "spells-status.h"
+#include "projection.h"
 
 /*!
 * @brief カオス領域魔法の各処理を行う
@@ -15,9 +17,6 @@ concptr do_chaos_spell(SPELL_IDX spell, BIT_FLAGS mode)
        bool info = (mode == SPELL_INFO) ? TRUE : FALSE;
        bool cast = (mode == SPELL_CAST) ? TRUE : FALSE;
 
-       const concptr s_dam = _("損傷:", "dam ");
-       const concptr s_random = _("ランダム", "random");
-
        DIRECTION dir;
        PLAYER_LEVEL plev = p_ptr->lev;
 
@@ -185,7 +184,7 @@ concptr do_chaos_spell(SPELL_IDX spell, BIT_FLAGS mode)
                if (desc) return _("モンスターにランダムな効果を与える。", "Fires something with random effects.");
 
                {
-                       if (info) return s_random;
+                       if (info) return KWD_RANDOM;
 
                        if (cast)
                        {
@@ -512,7 +511,7 @@ concptr do_chaos_spell(SPELL_IDX spell, BIT_FLAGS mode)
                if (desc) return _("ランダムな属性の球やビームを発生させる。", "Generate random kind of balls or beams.");
 
                {
-                       if (info) return format("%s150 / 250", s_dam);
+                       if (info) return format("%s150 / 250", KWD_DAM);
 
                        if (cast)
                        {
@@ -577,7 +576,7 @@ concptr do_chaos_spell(SPELL_IDX spell, BIT_FLAGS mode)
                        "Fires rockets, mana balls and nuclear waste balls in all directions each unless you are not adjacent to any walls. Otherwise *destroys* huge area.");
 
                {
-                       if (info) return format("%s3 * 175", s_dam);
+                       if (info) return format("%s3 * 175", KWD_DAM);
 
                        if (cast)
                        {