OSDN Git Service

[Refactor] #37353 重傷の治癒の効果をcure_serious_wounds()にまとめる。
[hengband/hengband.git] / src / spells2.c
index 766af0a..7d0cbfb 100644 (file)
@@ -5023,4 +5023,15 @@ bool_hack cure_light_wound(int dice, int sides)
        if (set_cut(p_ptr->cut - 10)) ident = TRUE;
        if (set_shero(0, TRUE)) ident = TRUE;
        return ident;
-}
\ No newline at end of file
+}
+
+bool_hack cure_serious_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_confused(0)) ident = TRUE;
+       if (set_cut((p_ptr->cut / 2) - 50)) ident = TRUE;
+       if (set_shero(0, TRUE)) ident = TRUE;
+       return ident;
+}