return TRUE;
}
+
+become_living_trump(player_type *creature_ptr)
+{
+ MUTATION_IDX mutation;
+
+ if (one_in_(7))
+ mutation = 12; /* Teleport control */
+ else
+ mutation = 77; /* Random teleportation (uncontrolled) */
+
+ /* Gain the mutation */
+ if (gain_mutation(creature_ptr, mutation))
+ {
+ msg_print(_("あなたは生きているカードに変わった。", "You have turned into a Living Trump."));
+ }
+}
extern void do_cmd_knowledge_mutations(void);
extern int calc_mutant_regenerate_mod(void);
extern bool mutation_power_aux(int power);
+extern become_living_trump(player_type *creature_ptr);
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)
- {
- MUTATION_IDX mutation;
-
- if (one_in_(7))
- /* Teleport control */
- mutation = 12;
- else
- /* Random teleportation (uncontrolled) */
- mutation = 77;
-
- /* Gain the mutation */
- if (gain_mutation(p_ptr, mutation))
- {
- msg_print(_("あなたは生きているカードに変わった。", "You have turned into a Living Trump."));
- }
- }
- }
+ if (cast) become_living_trump(p_ptr);
break;
case 31:
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_mutation(p_ptr, mutation))
- {
- msg_print(_("あなたは生きているカードに変わった。", "You have turned into a Living Trump."));
- }
- }
- }
+ if (cast) become_living_trump(p_ptr);
break;
case 23: