summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-02-25 11:35:22 -0300
committerJesusaves <cpntb1@ymail.com>2020-02-25 11:35:22 -0300
commit172f760b4b9851c3a445b62cb5b1d27200d0da66 (patch)
treece4b15e1a7bad24fb9efa16082636665ad219be4 /npc
parent7a25f24b795e0e13f25990c291eb5795d23c26ca (diff)
downloadserverdata-172f760b4b9851c3a445b62cb5b1d27200d0da66.tar.gz
serverdata-172f760b4b9851c3a445b62cb5b1d27200d0da66.tar.bz2
serverdata-172f760b4b9851c3a445b62cb5b1d27200d0da66.tar.xz
serverdata-172f760b4b9851c3a445b62cb5b1d27200d0da66.zip
Warping Crystals: There's always 5% chance of not breaking :3
Diffstat (limited to 'npc')
-rw-r--r--npc/items/teleporter.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/npc/items/teleporter.txt b/npc/items/teleporter.txt
index 592817a75..c947000c8 100644
--- a/npc/items/teleporter.txt
+++ b/npc/items/teleporter.txt
@@ -34,7 +34,7 @@ OnUse:
// It have at least 20% chance to break
// Chances begin at 100%, and lower in 0.01% each second
// It will never be below 20%, which happens after 8000 seconds
- .@adj_breakrate=max(2000, 10000-(gettimetick(2)-TELEPORTER_TIME) );
+ .@adj_breakrate=limit(2000, 10000-(gettimetick(2)-TELEPORTER_TIME), 9500 );
//debugmes "Adjusted break ratio: %d", .@adj_breakrate;
if (rand(0,10000) > .@adj_breakrate)
getitem @itemid, 1;