summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2024-02-16 21:30:03 -0300
committerJesusaves <cpntb1@ymail.com>2024-02-16 21:30:03 -0300
commit424987283fe15cb0e2154c995a39fd57a7d90253 (patch)
tree3e0a81567367c703c26da59931a91e751030d096
parent29b792a0c147e7184c07661b27821303f261cdc2 (diff)
downloadserverdata-424987283fe15cb0e2154c995a39fd57a7d90253.tar.gz
serverdata-424987283fe15cb0e2154c995a39fd57a7d90253.tar.bz2
serverdata-424987283fe15cb0e2154c995a39fd57a7d90253.tar.xz
serverdata-424987283fe15cb0e2154c995a39fd57a7d90253.zip
Boost the teleport cooldown reduction from Siege season
-rw-r--r--npc/items/lofteleporter.txt4
-rw-r--r--npc/items/teleporter.txt4
2 files changed, 6 insertions, 2 deletions
diff --git a/npc/items/lofteleporter.txt b/npc/items/lofteleporter.txt
index b4796c88e..2a4af9488 100644
--- a/npc/items/lofteleporter.txt
+++ b/npc/items/lofteleporter.txt
@@ -21,8 +21,10 @@
function loftel_time {
.@time = max((60*getarg(0))-(getarg(1)*60), 30);
// During rebirth season, wait time is reduced in 30%
- if ($EVENT$ == "Rebirth" || $EVENT$ == "Siege")
+ if ($EVENT$ == "Rebirth")
.@time = .@time * 2 / 3;
+ else if ($EVENT$ == "Siege")
+ .@time = .@time * 3 / 5; // 40% reduction on Siege Season
return gettimetick(2)+.@time;
}
diff --git a/npc/items/teleporter.txt b/npc/items/teleporter.txt
index ba8748ea8..ebc722103 100644
--- a/npc/items/teleporter.txt
+++ b/npc/items/teleporter.txt
@@ -37,8 +37,10 @@ OnUse:
.@timet=limit(0, gettimetick(2)-TELEPORTER_TIME, 3600);
.@prop=.@timet*2777/1000; // Make it range from 0~10000
.@adj_breakrate=limit( 500, .@prop, 9500 );
- if ($EVENT$ == "Rebirth" || $EVENT$ == "Siege")
+ if ($EVENT$ == "Rebirth")
.@adj_breakrate /= 2;
+ else if ($EVENT$ == "Siege")
+ .@adj_breakrate /= 3;
//debugmes "Adjusted break ratio: %d", .@adj_breakrate;
if (rand(10000) > .@adj_breakrate)
getitem @itemid, 1;