summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-05-17 23:19:34 -0300
committerJesusaves <cpntb1@ymail.com>2022-05-17 23:19:34 -0300
commit6588034308225de78c7d4a44116ef709e2351a6f (patch)
tree64ff03bb75e518250385e80a1a9cc577c7d63be2 /npc
parent5b8e0ceed2077d20c27d8e50f2be0ca56a2a61c8 (diff)
downloadserverdata-6588034308225de78c7d4a44116ef709e2351a6f.tar.gz
serverdata-6588034308225de78c7d4a44116ef709e2351a6f.tar.bz2
serverdata-6588034308225de78c7d4a44116ef709e2351a6f.tar.xz
serverdata-6588034308225de78c7d4a44116ef709e2351a6f.zip
Vitality now affects legacy healing items
Diffstat (limited to 'npc')
-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