From 3b5afe2a615478c1edff0f83b8af7a0e8334af73 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 5 Jun 2019 10:48:44 -0300 Subject: Fix Cursed Mouboo quest --- npc/items/rand_sc_heal.txt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'npc/items/rand_sc_heal.txt') diff --git a/npc/items/rand_sc_heal.txt b/npc/items/rand_sc_heal.txt index 97e16f8ad..c0610b223 100644 --- a/npc/items/rand_sc_heal.txt +++ b/npc/items/rand_sc_heal.txt @@ -76,7 +76,9 @@ OnUse: @max=@rarity * ((@type*1) + 1); // Vitality raises the minimum healing value in 1%, capped at maximum vlaue - @min = min(@max, @min+readparam(bVit)); + // It also raises @max up to double + @max = min(@max*2, @min+(readparam(bVit)/50)); + @min = min(@max, @min+(readparam(bVit)/30)); // Make these abstract % in absolute values @min=max(1, MaxHp*@min/100); @@ -120,11 +122,13 @@ OnUse: sc_end .@skill; sc_start2 .@skill, @delay, @val1, 1; + // Clear stuff + // @min and @max must be preserved for cross-reading @delay=0; @type=0; @rarity=0; - @min=0; - @max=0; + // @min=0; + // @max=0; @val1=0; end; } -- cgit v1.2.3-60-g2f50