summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-05-24 15:22:22 -0300
committerJesusaves <cpntb1@ymail.com>2019-05-24 15:22:22 -0300
commitd4efa8ec2fb37b8a81e3dcc5781cf5151f8f3104 (patch)
treeefd1a3728115d84c528352d13f2b2cd141df6788
parent5b27aad922f1dddb5dff09d62c9b9623419cca48 (diff)
downloadserverdata-d4efa8ec2fb37b8a81e3dcc5781cf5151f8f3104.tar.gz
serverdata-d4efa8ec2fb37b8a81e3dcc5781cf5151f8f3104.tar.bz2
serverdata-d4efa8ec2fb37b8a81e3dcc5781cf5151f8f3104.tar.xz
serverdata-d4efa8ec2fb37b8a81e3dcc5781cf5151f8f3104.zip
Healing cleanup
-rw-r--r--npc/items/legacy_heal.txt5
-rw-r--r--npc/items/rand_sc_heal.txt12
2 files changed, 6 insertions, 11 deletions
diff --git a/npc/items/legacy_heal.txt b/npc/items/legacy_heal.txt
index fd390bfae..3ff0e1e60 100644
--- a/npc/items/legacy_heal.txt
+++ b/npc/items/legacy_heal.txt
@@ -48,7 +48,8 @@ OnUse:
sc_start2 .@skill, @delay, @val1, 1;
@delay=0;
- @type=0;
- @rarity=0;
+ @min=0;
+ @max=0;
+ @val1=0;
end;
}
diff --git a/npc/items/rand_sc_heal.txt b/npc/items/rand_sc_heal.txt
index 83b19e0b6..ddb2ab194 100644
--- a/npc/items/rand_sc_heal.txt
+++ b/npc/items/rand_sc_heal.txt
@@ -104,30 +104,24 @@ OnUse:
}
*/
- debugmes "PDAVG: %d/%d", .@v, .@d;
- debugmes "Pre PD: %d/%d", @val1, @delay;
-
// If there WAS an effect previously, get ponderate average
if (.@v > 0) {
@val1=ponderate_avg(@val1, @delay, .@v, .@d);
@delay=ponderate_avg(@delay, @val1, .@d, .@v);
}
- debugmes "Post PD: %d/%d", @val1, @delay;
-
// Put the delay in ms
@delay *= 1000;
- debugmes "Ready";
-
// Apply the effect and finish
sc_end .@skill;
sc_start2 .@skill, @delay, @val1, 1;
- debugmes "Done";
-
@delay=0;
@type=0;
@rarity=0;
+ @min=0;
+ @max=0;
+ @val1=0;
end;
}