summaryrefslogtreecommitdiff
path: root/npc/items/rand_sc_heal.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-06-05 10:48:44 -0300
committerJesusaves <cpntb1@ymail.com>2019-06-05 10:48:44 -0300
commit3b5afe2a615478c1edff0f83b8af7a0e8334af73 (patch)
treefd7a8fd3cdad0c7d5e269272ff5e08a48b77ae27 /npc/items/rand_sc_heal.txt
parent757fd6ba3b99de58c794e36e9b67677c53a11700 (diff)
downloadserverdata-3b5afe2a615478c1edff0f83b8af7a0e8334af73.tar.gz
serverdata-3b5afe2a615478c1edff0f83b8af7a0e8334af73.tar.bz2
serverdata-3b5afe2a615478c1edff0f83b8af7a0e8334af73.tar.xz
serverdata-3b5afe2a615478c1edff0f83b8af7a0e8334af73.zip
Fix Cursed Mouboo quest
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;
}