X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=src%2Fspells2.c;h=0a7ceece354be1eb0f7c7ec8d4d881d9f39c3802;hb=577a67eed110384d77b8d12e4a15f55a845c71cf;hp=589093d837d5fad137e83d48cd0c4bf040f8007d;hpb=d8fc7071b12934c43fc76618fa16b46c0b4c7957;p=hengband%2Fhengband.git diff --git a/src/spells2.c b/src/spells2.c index 589093d83..0a7ceece3 100644 --- a/src/spells2.c +++ b/src/spells2.c @@ -5010,6 +5010,15 @@ bool_hack heroism(int base) return ident; } +bool_hack berserk(int base) +{ + bool_hack ident = FALSE; + if (set_afraid(0)) ident = TRUE; + if (set_shero(p_ptr->hero + randint1(base) + base, FALSE)) ident = TRUE; + if (hp_player(30)) ident = TRUE; + return ident; +} + bool_hack cure_light_wounds(int dice, int sides) { bool_hack ident = FALSE; @@ -5044,6 +5053,19 @@ bool_hack cure_critical_wounds(HIT_POINT pow) return ident; } +bool_hack true_healing(HIT_POINT pow) +{ + bool_hack ident = FALSE; + if (hp_player(pow)) 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_image(0)) ident = TRUE; + return ident; +} + bool_hack restore_mana(bool_hack magic_eater) { bool_hack ident = FALSE;