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.txt12
1 files changed, 6 insertions, 6 deletions
diff --git a/npc/items/rand_sc_heal.txt b/npc/items/rand_sc_heal.txt
index 4398f4e6..e4b0875a 100644
--- a/npc/items/rand_sc_heal.txt
+++ b/npc/items/rand_sc_heal.txt
@@ -18,10 +18,10 @@
// Add remaning bonus if the last one hasn't finished
function remaining_bonus
{
- if (getstatus (getarg (0)))
+ if (getstatus(getarg(0)))
{
- .@old_val1 = getstatus (getarg (0), 1);
- .@old_delay = getstatus (getarg (0), 4) * 1000;
+ .@old_val1 = getstatus(getarg(0), 1);
+ .@old_delay = getstatus(getarg(0), 4) * 1000;
// change the delay to prevent fast healing
if (.@old_delay > @delay)
@@ -45,8 +45,8 @@ OnUse:
if (@delay <= 0) close;
// minimum between @min and bVit / 2 * BaseLevel / 10
- .@vitality_bonus = min (@min, readparam (bVit) * BaseLevel / 20);
- .@rand_heal_val = rand (@min, @max);
+ .@vitality_bonus = min(@min, readparam(bVit) * BaseLevel / 20);
+ .@rand_heal_val = rand(@min, @max);
// val1 is the heal value without the vitality bonus
@val1 = .@rand_heal_val / @delay;
@@ -76,7 +76,7 @@ OnUse:
}
if (.@skill != 0)
{
- remaining_bonus (.@skill);
+ remaining_bonus(.@skill);
sc_end .@skill;
sc_start2 .@skill, @delay, @val1, 1;
}