break;\r
\r
case SV_POTION_DETONATIONS:\r
- msg_print(_("体の中で激しい爆発が起きた!", "Massive explosions rupture your body!"));\r
- take_hit(DAMAGE_NOESCAPE, damroll(50, 20), _("爆発の薬", "a potion of Detonation"), -1);\r
-\r
- (void)set_stun(p_ptr->stun + 75);\r
- (void)set_cut(p_ptr->cut + 5000);\r
- ident = TRUE;\r
+ ident = detonation(p_ptr);\r
break;\r
\r
case SV_POTION_DEATH:\r
extern bool eat_lock(void);
extern bool shock_power(void);
extern bool booze(player_type *creature_ptr);
+extern bool detonation(player_type *creature_ptr);
+
/* bldg.c */
extern void battle_monsters(void);
}
}
return ident;
+}
+
+bool detonation(player_type *creature_ptr)
+{
+ msg_print(_("体の中で激しい爆発が起きた!", "Massive explosions rupture your body!"));
+ take_hit(DAMAGE_NOESCAPE, damroll(50, 20), _("爆発の薬", "a potion of Detonation"), -1);
+ (void)set_stun(creature_ptr->stun + 75);
+ (void)set_cut(creature_ptr->cut + 5000);
+ return TRUE;
}
\ No newline at end of file