summaryrefslogtreecommitdiff
path: root/npc/items
diff options
context:
space:
mode:
Diffstat (limited to 'npc/items')
-rw-r--r--npc/items/legacy_heal.txt8
1 files 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