From d4efa8ec2fb37b8a81e3dcc5781cf5151f8f3104 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 24 May 2019 15:22:22 -0300 Subject: Healing cleanup --- npc/items/rand_sc_heal.txt | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'npc/items/rand_sc_heal.txt') 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; } -- cgit v1.2.3-60-g2f50