Integrate some effects to cure_light_wounds().
W:5:0:50:350
A:5/1
P:0:1d2:0:0:0
-D:$It heals you 2d8 and cures berserk when you use it.
-D:それは使うと体力が2d8回復し、狂戦士化を癒す。
+D:$It heals you 2d8 and cures blindness and berserk when you use it.
+D:ã\81\9dã\82\8cã\81¯ä½¿ã\81\86ã\81¨ä½\93å\8a\9bã\81\8c2d8å\9b\9e復ã\81\97ã\80\81ç\9b²ç\9b®ã\83»ç\8b\82æ\88¦å£«å\8c\96ã\82\92ç\99\92ã\81\99ã\80\82
N:313:透明物体感知:アカシアの
E:Detect Invisible:Locust
break;\r
\r
case SV_POTION_CURE_LIGHT:\r
- if (hp_player(damroll(2, 8))) ident = TRUE;\r
- if (set_blind(0)) ident = TRUE;\r
- if (set_cut(p_ptr->cut - 10)) ident = TRUE;\r
- if (set_shero(0,TRUE)) ident = TRUE;\r
+ ident = cure_light_wound(2, 8);\r
break;\r
\r
case SV_POTION_CURE_SERIOUS:\r
if (set_blind(0)) ident = TRUE;\r
if (set_confused(0)) ident = TRUE;\r
if (set_cut((p_ptr->cut / 2) - 50)) ident = TRUE;\r
- if (set_shero(0,TRUE)) ident = TRUE;\r
+ if (set_shero(0, TRUE)) ident = TRUE;\r
break;\r
\r
case SV_POTION_CURE_CRITICAL:\r
\r
case SV_STAFF_CURE_LIGHT:\r
{\r
- if (hp_player(damroll((powerful ? 4 : 2), 8))) ident = TRUE;\r
- if (powerful) {\r
- if (set_blind(0)) ident = TRUE;\r
- if (set_poisoned(0)) ident = TRUE;\r
- if (set_cut(p_ptr->cut - 10)) ident = TRUE;\r
- }\r
- if (set_shero(0, TRUE)) ident = TRUE;\r
+ ident = cure_light_wound((powerful ? 4 : 2), 8);\r
break;\r
}\r
\r
extern void cast_shuffle(void);
extern bool_hack life_stream(bool_hack message, bool_hack virtue);
extern bool_hack heroism(int base);
+extern bool_hack cure_light_wound(int dice, int sides);
/* spells3.c */
extern bool teleport_away(MONSTER_IDX m_idx, int dis, BIT_FLAGS mode);
int sides = 8;\r
\r
if (info) return info_heal(dice, sides, 0);\r
-\r
- if (cast)\r
- {\r
- hp_player(damroll(dice, sides));\r
- set_cut(p_ptr->cut - 10);\r
- }\r
+ if (cast) (void)cure_light_wound(dice, sides);\r
}\r
break;\r
\r
{
msg_print(_("気分が良くなってくる。", "You feel better and better."));
}
- if (cast || cont)
- {
- hp_player(damroll(1, 10));
- set_cut(p_ptr->cut - 10);
- }
+ if (cast || cont) (void)cure_light_wound(1, 10);
break;
case 2:
{\r
int dice = 2;\r
int sides = 10;\r
-\r
if (info) return info_heal(dice, sides, 0);\r
-\r
- if (cast)\r
- {\r
- hp_player(damroll(dice, sides));\r
- set_cut(p_ptr->cut - 10);\r
- }\r
+ if (cast) (void)cure_light_wound(dice, sides); \r
}\r
break;\r
\r
if(set_hero(p_ptr->hero + randint1(base) + base, FALSE)) ident = TRUE;
if(hp_player(10)) ident = TRUE;
return ident;
+}
+
+bool_hack cure_light_wound(int dice, int sides)
+{
+ bool_hack ident = FALSE;
+ if (hp_player(damroll(dice, sides))) ident = TRUE;
+ if (set_blind(0)) ident = TRUE;
+ if (set_cut(p_ptr->cut - 10)) ident = TRUE;
+ if (set_shero(0, TRUE)) ident = TRUE;
+ return ident;
}
\ No newline at end of file