summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
Diffstat (limited to 'npc')
-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;
}