summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-02-25 11:39:36 -0300
committerJesusaves <cpntb1@ymail.com>2020-02-25 11:39:36 -0300
commit9f5b1a1bf21389cf30426f487489e08070ff4215 (patch)
tree0b10ced22d94bfd05e4654de4aa4e23eb565b2a9
parent2f027d167ac60736563a737aad0a82bd2e3663a8 (diff)
downloadserverdata-9f5b1a1bf21389cf30426f487489e08070ff4215.tar.gz
serverdata-9f5b1a1bf21389cf30426f487489e08070ff4215.tar.bz2
serverdata-9f5b1a1bf21389cf30426f487489e08070ff4215.tar.xz
serverdata-9f5b1a1bf21389cf30426f487489e08070ff4215.zip
Reconfigure Warp Crystal Break Chance to hit 0% after a whole hour
-rw-r--r--npc/items/teleporter.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/npc/items/teleporter.txt b/npc/items/teleporter.txt
index 658f198c4..f5ef06e70 100644
--- a/npc/items/teleporter.txt
+++ b/npc/items/teleporter.txt
@@ -34,8 +34,9 @@ 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
- .@timet=limit(0, gettimetick(2)-TELEPORTER_TIME, 8000);
- .@adj_breakrate=limit(2000, 10000-(.@timet), 9500 );
+ .@timet=limit(0, gettimetick(2)-TELEPORTER_TIME, 3600);
+ .@prop=.@timet*36/100; // Make it range from 0~10000
+ .@adj_breakrate=limit(2000, .@prop, 9500 );
//debugmes "Adjusted break ratio: %d", .@adj_breakrate;
if (rand(0,10000) > .@adj_breakrate)
getitem @itemid, 1;