Integrate cure_critical_wounds() and greater_healing().
case ACT_CHOIR_SINGS:
{
msg_print(_("天国の歌が聞こえる...", "A heavenly choir sings..."));
- (void)greater_healing(777);
+ (void)cure_critical_wounds(777);
(void)set_hero(randint1(25) + 25, FALSE);
break;
}
{
msg_print(_("深青色に輝いている...", "It glows deep blue..."));
msg_print(_("体内に暖かい鼓動が感じられる...", "You feel a warm tingling inside..."));
- (void)greater_healing(700);
+ (void)cure_critical_wounds(700);
break;
}
{
msg_print(_("白く明るく輝いている...", "It glows a bright white..."));
msg_print(_("ひじょうに気分がよい...", "You feel much better..."));
- (void)greater_healing(1000);
+ (void)cure_critical_wounds(1000);
break;
}
break;\r
\r
case SV_POTION_CURE_CRITICAL:\r
- ident = cure_serious_wounds(6, 8);\r
+ ident = cure_critical_wounds(damroll(6, 8));\r
break;\r
\r
case SV_POTION_HEALING:\r
- ident = greater_healing(300);\r
+ ident = cure_critical_wounds(300);\r
break;\r
\r
case SV_POTION_STAR_HEALING:\r
- ident = greater_healing(1200);\r
+ ident = cure_critical_wounds(1200);\r
break;\r
\r
case SV_POTION_LIFE:\r
extern bool_hack heroism(int base);
extern bool_hack cure_light_wounds(int dice, int sides);
extern bool_hack cure_serious_wounds(int dice, int sides);
-extern bool_hack cure_critical_wounds(int dice, int sides);
-extern bool_hack greater_healing(int pow);
+extern bool_hack cure_critical_wounds(HIT_POINT pow);
/* spells3.c */
extern bool teleport_away(MONSTER_IDX m_idx, int dis, BIT_FLAGS mode);
{
msg_print(_("気分が良くなってくる。", "You feel better and better."));
}
- if (cast || cont) (void)cure_serious_wounds(4, 10);
+ if (cast || cont) (void)cure_critical_wounds(damroll(4, 10));
break;
case 18:
int sides = 10;\r
\r
if (info) return info_heal(dice, sides, 0);\r
- if (cast) (void)cure_serious_wounds(dice, sides);\r
+ if (cast) (void)cure_critical_wounds(damroll(dice, sides));\r
}\r
break;\r
\r
\r
{\r
int heal = 300;\r
-\r
if (info) return info_heal(0, 0, heal);\r
-\r
- if (cast)\r
- {\r
- hp_player(heal);\r
- set_stun(0);\r
- set_cut(0);\r
- }\r
+ if (cast) (void)cure_critical_wounds(heal);\r
}\r
break;\r
\r
\r
{\r
int heal = 2000;\r
-\r
if (info) return info_heal(0, 0, heal);\r
-\r
- if (cast)\r
- {\r
- hp_player(heal);\r
- set_stun(0);\r
- set_cut(0);\r
- }\r
+ if (cast) (void)cure_critical_wounds(heal);\r
}\r
break;\r
\r
case 15:\r
if (name) return _("\96ò\91\90\8e¡\97Ã", "Herbal Healing");\r
if (desc) return _("\91Ì\97Í\82ð\91å\95\9d\82É\89ñ\95\9c\82³\82¹\81A\95\89\8f\9d\81A\9eN\9eO\8fó\91Ô\81A\93Å\82©\82ç\91S\89õ\82·\82é\81B", "Heals HP greatly. And heals cut, stun and poison completely.");\r
-\r
{\r
int heal = 500;\r
-\r
if (info) return info_heal(0, 0, heal);\r
-\r
- if (cast)\r
- {\r
- hp_player(heal);\r
- set_stun(0);\r
- set_cut(0);\r
- set_poisoned(0);\r
- }\r
+ if (cast) (void)cure_critical_wounds(heal);\r
}\r
break;\r
\r
return ident;
}
-bool_hack cure_critical_wounds(int dice, int sides)
-{
- bool_hack ident = FALSE;
- if (hp_player(damroll(dice, sides))) ident = TRUE;
- if (set_blind(0)) ident = TRUE;
- if (set_confused(0)) ident = TRUE;
- if (set_poisoned(0)) ident = TRUE;
- if (set_stun(0)) ident = TRUE;
- if (set_cut(0)) ident = TRUE;
- if (set_shero(0, TRUE)) ident = TRUE;
- return ident;
-}
-
-bool_hack greater_healing(int pow)
+bool_hack cure_critical_wounds(HIT_POINT pow)
{
bool_hack ident = FALSE;
if (hp_player(pow)) ident = TRUE;