summaryrefslogtreecommitdiff
path: root/npc/items
diff options
context:
space:
mode:
Diffstat (limited to 'npc/items')
-rw-r--r--npc/items/rand_sc_heal.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/npc/items/rand_sc_heal.txt b/npc/items/rand_sc_heal.txt
index 046b38e1c..bc3d870fe 100644
--- a/npc/items/rand_sc_heal.txt
+++ b/npc/items/rand_sc_heal.txt
@@ -38,7 +38,7 @@
}
else
{
- @val3 = @val1;
+ @val1 = @val3;
}
return;
}
@@ -50,9 +50,9 @@ OnUse:
.@vitality_bonus = min(@min, readparam(bVit) * BaseLevel / 20);
.@rand_heal_val = rand(@min, @max);
- // val3 is the heal value without the vitality bonus
- @val3 = .@rand_heal_val / @delay;
+ // val1 used to be the heal value without the vitality bonus
@val1 = (.@rand_heal_val + .@vitality_bonus) / @delay;
+ @val3 = (.@rand_heal_val + .@vitality_bonus) / @delay;
if (@val3 <= 0) close;