From eecae3ce4a18f0d8b68a7165aa92a800d74a7715 Mon Sep 17 00:00:00 2001 From: MobiusDevelopment <8391001+MobiusDevelopment@users.noreply.github.com> Date: Tue, 29 Jun 2021 23:59:37 +0000 Subject: [PATCH] DecreaseWaitingTime effect handler adjustments. Contributed by nasseka. --- .../scripts/handlers/effecthandlers/DecreaseWaitingTime.java | 4 ++-- .../dist/game/data/stats/items/81600-81699.xml | 2 -- .../scripts/handlers/effecthandlers/DecreaseWaitingTime.java | 4 ++-- .../dist/game/data/stats/items/81600-81699.xml | 2 -- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/handlers/effecthandlers/DecreaseWaitingTime.java b/L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/handlers/effecthandlers/DecreaseWaitingTime.java index 54a92d2b96..7a094b29dc 100644 --- a/L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/handlers/effecthandlers/DecreaseWaitingTime.java +++ b/L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/handlers/effecthandlers/DecreaseWaitingTime.java @@ -55,13 +55,13 @@ public class DecreaseWaitingTime extends AbstractEffect final long currentTime = Chronos.currentTimeMillis(); long creationTime = player.getVariables().getLong(PlayerVariables.HOMUNCULUS_CREATION_TIME, 0); - final long waitTime = 86400; // 86400 = 24 Hours + final long waitTime = 0; // 86400 = 24 Hours if (creationTime == 0) { player.getInventory().addItem("DecreaseWaitingTime effect refund", item.getId(), 1, player, player); player.sendMessage("You don't have any Homunculus in progress."); } - else if (((currentTime / 1000) - (creationTime / 1000)) > waitTime) + else if (((currentTime / 1000) - (creationTime / 1000)) >= waitTime) { player.getInventory().addItem("DecreaseWaitingTime effect refund", item.getId(), 1, player, player); player.sendMessage("You cannot decrease the waiting time anymore."); diff --git a/L2J_Mobius_8.0_Homunculus/dist/game/data/stats/items/81600-81699.xml b/L2J_Mobius_8.0_Homunculus/dist/game/data/stats/items/81600-81699.xml index 0111578089..78afab06ca 100644 --- a/L2J_Mobius_8.0_Homunculus/dist/game/data/stats/items/81600-81699.xml +++ b/L2J_Mobius_8.0_Homunculus/dist/game/data/stats/items/81600-81699.xml @@ -898,7 +898,6 @@ - @@ -921,7 +920,6 @@ - diff --git a/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/effecthandlers/DecreaseWaitingTime.java b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/effecthandlers/DecreaseWaitingTime.java index 54a92d2b96..7a094b29dc 100644 --- a/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/effecthandlers/DecreaseWaitingTime.java +++ b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/effecthandlers/DecreaseWaitingTime.java @@ -55,13 +55,13 @@ public class DecreaseWaitingTime extends AbstractEffect final long currentTime = Chronos.currentTimeMillis(); long creationTime = player.getVariables().getLong(PlayerVariables.HOMUNCULUS_CREATION_TIME, 0); - final long waitTime = 86400; // 86400 = 24 Hours + final long waitTime = 0; // 86400 = 24 Hours if (creationTime == 0) { player.getInventory().addItem("DecreaseWaitingTime effect refund", item.getId(), 1, player, player); player.sendMessage("You don't have any Homunculus in progress."); } - else if (((currentTime / 1000) - (creationTime / 1000)) > waitTime) + else if (((currentTime / 1000) - (creationTime / 1000)) >= waitTime) { player.getInventory().addItem("DecreaseWaitingTime effect refund", item.getId(), 1, player, player); player.sendMessage("You cannot decrease the waiting time anymore."); diff --git a/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/stats/items/81600-81699.xml b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/stats/items/81600-81699.xml index 0111578089..78afab06ca 100644 --- a/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/stats/items/81600-81699.xml +++ b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/stats/items/81600-81699.xml @@ -898,7 +898,6 @@ - @@ -921,7 +920,6 @@ -