From 65afaafc7b0d1db1cc136d64c9829b057563df6a Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 15 Sep 2018 17:44:03 -0300 Subject: Teleporter will never take less than 30s to recharge --- npc/items/teleporter.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'npc/items') diff --git a/npc/items/teleporter.txt b/npc/items/teleporter.txt index f88540ad2..90deb80c1 100644 --- a/npc/items/teleporter.txt +++ b/npc/items/teleporter.txt @@ -48,7 +48,7 @@ L_Save: } else { doevent "shake::OnGM"; warp "Save", 0, 0; - TELEPORTER_TIME=gettimetick(2)+(60*30)-(.@x*60); + TELEPORTER_TIME=gettimetick(2)+min((60*30)-(.@x*60), 30); } closedialog; end; @@ -59,7 +59,7 @@ L_LoF: } else { doevent "shake::OnGM"; warp "017-1", 120, 89; - TELEPORTER_TIME=gettimetick(2)+(60*50)-(.@x*60); + TELEPORTER_TIME=gettimetick(2)+min((60*50)-(.@x*60), 30); } closedialog; end; -- cgit v1.2.3-60-g2f50