summaryrefslogtreecommitdiff
path: root/npc/items/rand_sc_heal.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/items/rand_sc_heal.txt')
-rw-r--r--npc/items/rand_sc_heal.txt10
1 files changed, 7 insertions, 3 deletions
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;
}