summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-03-12 00:00:38 -0300
committerJesusaves <cpntb1@ymail.com>2019-03-12 00:00:38 -0300
commit5c92e9905c3fc9195b9b4ad27988d857a9117e85 (patch)
tree72f7a81d9c8876f0624402b736c82893b7c4d0be /npc
parent8983bdf0fc9b7c0e30ce835b8af93fd9cebd595c (diff)
downloadserverdata-5c92e9905c3fc9195b9b4ad27988d857a9117e85.tar.gz
serverdata-5c92e9905c3fc9195b9b4ad27988d857a9117e85.tar.bz2
serverdata-5c92e9905c3fc9195b9b4ad27988d857a9117e85.tar.xz
serverdata-5c92e9905c3fc9195b9b4ad27988d857a9117e85.zip
Stacking healing items now incur in a penalty to prevent Crazyfefe spams.
Diffstat (limited to 'npc')
-rw-r--r--npc/items/rand_sc_heal.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/npc/items/rand_sc_heal.txt b/npc/items/rand_sc_heal.txt
index 1c1c7dc1e..c08d7f271 100644
--- a/npc/items/rand_sc_heal.txt
+++ b/npc/items/rand_sc_heal.txt
@@ -28,6 +28,9 @@
.@old_val1 = getstatus(getarg(0), 1);
.@old_delay = getstatus(getarg(0), 4) * 1000;
+ // Penalty to healing item stack: -20% on previous item bonus
+ .@old_val1 = (.@old_val1*8/10);
+
// change the delay to prevent fast healing
if (.@old_delay > @delay)
{