OSDN Git Service

Changed to match the For2.2.2-Refactoring-Cocoa2 branch. Put se_maoudamashii_voice_m...
[hengbandforosx/hengbandosx.git] / src / realm-trump.c
index b993e99..e694a7d 100644 (file)
@@ -1,5 +1,9 @@
 #include "angband.h"
 #include "cmd-spell.h"
+#include "projection.h"
+#include "spells-summon.h"
+#include "mutation.h"
+#include "spells-status.h"
 
 
 /*!
@@ -23,7 +27,7 @@ concptr do_trump_spell(SPELL_IDX spell, BIT_FLAGS mode)
        {
        case 0:
                if (name) return _("ショート・テレポート", "Phase Door");
-               if (desc) return _("近距離のテレポートをする。", "Teleport short distance.");
+               if (desc) return _("近距離のテレポートをする。", "Teleports you a short distance.");
 
                {
                        POSITION range = 10;
@@ -61,7 +65,7 @@ concptr do_trump_spell(SPELL_IDX spell, BIT_FLAGS mode)
                if (desc) return _("カードの占いをする。", "Causes random effects.");
 
                {
-                       if (info) return s_random;
+                       if (info) return KWD_RANDOM;
 
                        if (cast)
                        {
@@ -84,7 +88,7 @@ concptr do_trump_spell(SPELL_IDX spell, BIT_FLAGS mode)
 
        case 4:
                if (name) return _("テレポート", "Teleport");
-               if (desc) return _("遠距離のテレポートをする。", "Teleport long distance.");
+               if (desc) return _("遠距離のテレポートをする。", "Teleports you a long distance.");
 
                {
                        POSITION range = plev * 4;
@@ -256,7 +260,7 @@ concptr do_trump_spell(SPELL_IDX spell, BIT_FLAGS mode)
 
        case 12:
                if (name) return _("テレポート・レベル", "Teleport Level");
-               if (desc) return _("瞬時に上か下の階にテレポートする。", "Teleport to up or down stairs in a moment.");
+               if (desc) return _("瞬時に上か下の階にテレポートする。", "Instantly teleports you up or down a level.");
 
                {
                        if (cast)
@@ -269,7 +273,7 @@ concptr do_trump_spell(SPELL_IDX spell, BIT_FLAGS mode)
 
        case 13:
                if (name) return _("次元の扉", "Dimension Door");
-               if (desc) return _("短距離内の指定した場所にテレポートする。", "Teleport to given location.");
+               if (desc) return _("短距離内の指定した場所にテレポートする。", "Teleports you to a given location.");
 
                {
                        POSITION range = plev / 2 + 10;
@@ -287,7 +291,7 @@ concptr do_trump_spell(SPELL_IDX spell, BIT_FLAGS mode)
        case 14:
                if (name) return _("帰還の呪文", "Word of Recall");
                if (desc) return _("地上にいるときはダンジョンの最深階へ、ダンジョンにいるときは地上へと移動する。",
-                       "Recalls player from dungeon to town, or from town to the deepest level of dungeon.");
+                       "Recalls player from dungeon to town or from town to the deepest level of dungeon.");
 
                {
                        int base = 15;
@@ -362,7 +366,7 @@ concptr do_trump_spell(SPELL_IDX spell, BIT_FLAGS mode)
                break;
 
        case 18:
-               if (name) return _("爬虫類のカード", "Trump Reptiles");
+               if (name) return _("爬虫類のカード", "Trump Reptile");
                if (desc) return _("1体のヒドラを召喚する。", "Summons a hydra.");
 
                {
@@ -441,26 +445,7 @@ concptr do_trump_spell(SPELL_IDX spell, BIT_FLAGS mode)
                if (name) return _("人間トランプ", "Living Trump");
                if (desc) return _("ランダムにテレポートする突然変異か、自分の意思でテレポートする突然変異が身につく。",
                        "Gives mutation which makes you teleport randomly or makes you able to teleport at will.");
-
-               {
-                       if (cast)
-                       {
-                               int mutation;
-
-                               if (one_in_(7))
-                                       /* Teleport control */
-                                       mutation = 12;
-                               else
-                                       /* Random teleportation (uncontrolled) */
-                                       mutation = 77;
-
-                               /* Gain the mutation */
-                               if (gain_random_mutation(mutation))
-                               {
-                                       msg_print(_("あなたは生きているカードに変わった。", "You have turned into a Living Trump."));
-                               }
-                       }
-               }
+               if (cast) become_living_trump(p_ptr);
                break;
 
        case 23:
@@ -513,7 +498,7 @@ concptr do_trump_spell(SPELL_IDX spell, BIT_FLAGS mode)
 
        case 26:
                if (name) return _("回復モンスター", "Heal Monster");
-               if (desc) return _("モンスター1体の体力を回復させる。", "Heal a monster.");
+               if (desc) return _("モンスター1体の体力を回復させる。", "Heals a monster.");
 
                {
                        int heal = plev * 10 + 200;
@@ -561,7 +546,7 @@ concptr do_trump_spell(SPELL_IDX spell, BIT_FLAGS mode)
 
        case 28:
                if (name) return _("隕石のカード", "Trump Meteor");
-               if (desc) return _("自分の周辺に隕石を落とす。", "Makes meteor balls fall down to nearby random locations.");
+               if (desc) return _("自分の周辺に隕石を落とす。", "Causes meteorites to fall down on nearby random locations.");
 
                {
                        HIT_POINT dam = plev * 2;