summaryrefslogtreecommitdiff
path: root/npc/items/rand_sc_heal.txt
diff options
context:
space:
mode:
authorgumi <mekolat@users.noreply.github.com>2017-10-11 19:02:11 -0400
committergumi <mekolat@users.noreply.github.com>2017-10-11 19:02:20 -0400
commit6662b6f305976881c3e675241c41be7731b65aa5 (patch)
treea8ecaa074cf67cb929f4de6ed62ef7c4b49c46d1 /npc/items/rand_sc_heal.txt
parent03049799efdc103fdd74e77161ed6a907acb7dde (diff)
downloadserverdata-s20171023.tar.gz
serverdata-s20171023.tar.bz2
serverdata-s20171023.tar.xz
serverdata-s20171023.zip
what's up with this crazy syntax?s20171023
I blame Reid
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;
}