OSDN Git Service

[Refactor] #37353 VARTUE_LARGE, VARTUE_SMALL を avatar.h へ移動.
[hengband/hengband.git] / src / realm-trump.c
index 53c42f9..48b86b5 100644 (file)
@@ -1,9 +1,14 @@
 #include "angband.h"
+#include "util.h"
+
 #include "cmd-spell.h"
-#include "projection.h"
-#include "spells-summon.h"
 #include "mutation.h"
+#include "spells.h"
+#include "spells-summon.h"
 #include "spells-status.h"
+#include "player-effects.h"
+#include "player-class.h"
+#include "targeting.h"
 
 
 /*!
@@ -445,26 +450,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: