From 6588034308225de78c7d4a44116ef709e2351a6f Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 17 May 2022 23:19:34 -0300 Subject: Vitality now affects legacy healing items --- npc/items/legacy_heal.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/npc/items/legacy_heal.txt b/npc/items/legacy_heal.txt index 3157563c5..f9e737234 100644 --- a/npc/items/legacy_heal.txt +++ b/npc/items/legacy_heal.txt @@ -29,9 +29,11 @@ function script ItHeal { // By default, we use 'S' .@skill = SC_S_LIFEPOTION; - // minimum between @min and bVit / 2 * BaseLevel / 10 - //@min = min(@max, readparam(bVit) * BaseLevel / 20); - // Vitality no longer applies to these + // Vitality can improve the healing amount + .@min = max(.@max, .@min + (.@min * readparam2(bVit) / 100)); + .@max = .@max + (.@max * readparam2(bVit) / 240); + + // Obtain the real healing @val1 = rand2(.@min, .@max); .@delay *= 1000; // Put the delay in ms -- cgit v1.2.3-70-g09d2