OSDN Git Service

[Refactor] #40574 Moved become_living_trump() from mutation.c/h to spells-trump.c/h
authorHourier <hourier@users.sourceforge.jp>
Sat, 1 Aug 2020 03:56:18 +0000 (12:56 +0900)
committerHourier <hourier@users.sourceforge.jp>
Sat, 1 Aug 2020 03:56:18 +0000 (12:56 +0900)
src/mutation/mutation.c
src/mutation/mutation.h
src/realm/realm-craft.c
src/spell-realm/spells-trump.c
src/spell-realm/spells-trump.h

index 15ca7c4..bababe9 100644 (file)
@@ -108,14 +108,6 @@ int calc_mutant_regenerate_mod(player_type *creature_ptr)
     return (regen);
 }
 
-void become_living_trump(player_type *creature_ptr)
-{
-    /* 1/7 Teleport control and 6/7 Random teleportation (uncontrolled) */
-    MUTATION_IDX mutation = one_in_(7) ? 12 : 77;
-    if (gain_mutation(creature_ptr, mutation))
-        msg_print(_("あなたは生きているカードに変わった。", "You have turned into a Living Trump."));
-}
-
 void set_mutation_flags(player_type *creature_ptr)
 {
     if (creature_ptr->muta3 == 0)
index 4135a69..cf2e838 100644 (file)
@@ -3,5 +3,4 @@
 #include "system/angband.h"
 
 int calc_mutant_regenerate_mod(player_type *creature_ptr);
-void become_living_trump(player_type *creature_ptr);
 void set_mutation_flags(player_type *creature_ptr);
index c58d294..7a3ae36 100644 (file)
@@ -2,13 +2,13 @@
 #include "cmd-action/cmd-spell.h"
 #include "monster-floor/monster-summon.h"
 #include "monster-floor/place-monster-types.h"
-#include "mutation/mutation.h"
 #include "player/digestion-processor.h"
 #include "player/selfinfo.h"
 #include "spell-kind/spells-curse-removal.h"
 #include "spell-kind/spells-enchant.h"
 #include "spell-kind/spells-perception.h"
 #include "spell-realm/spells-craft.h"
+#include "spell-realm/spells-trump.h"
 #include "spell/range-calc.h"
 #include "spell/spells-object.h"
 #include "spell/spells-status.h"
index 718beb9..14e3b6c 100644 (file)
@@ -218,3 +218,11 @@ void cast_shuffle(player_type *caster_ptr)
     msg_print(_("更に経験を積んだような気がする。", "You feel more experienced."));
     gain_exp(caster_ptr, ee);
 }
+
+void become_living_trump(player_type *creature_ptr)
+{
+    /* 1/7 Teleport control and 6/7 Random teleportation (uncontrolled) */
+    MUTATION_IDX mutation = one_in_(7) ? 12 : 77;
+    if (gain_mutation(creature_ptr, mutation))
+        msg_print(_("あなたは生きているカードに変わった。", "You have turned into a Living Trump."));
+}
index 9e7b737..1ab067a 100644 (file)
@@ -3,3 +3,4 @@
 #include "system/angband.h"
 
 void cast_shuffle(player_type *caster_ptr);
+void become_living_trump(player_type *creature_ptr);