|
|
@ -18,7 +18,7 @@ import java.util.ArrayList; |
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.HashSet; |
|
|
|
import java.util.HashSet; |
|
|
|
|
|
|
|
|
|
|
|
public class ZergMechanicThread implements Runnable { |
|
|
|
public class ZergMechanicThread implements Runnable { |
|
|
|
private final Mine mine; |
|
|
|
private final Mine mine; |
|
|
|
private final Bane bane; |
|
|
|
private final Bane bane; |
|
|
|
private final HashSet<PlayerCharacter> affectedPlayers = new HashSet<>(); |
|
|
|
private final HashSet<PlayerCharacter> affectedPlayers = new HashSet<>(); |
|
|
@ -79,6 +79,12 @@ import java.util.HashSet; |
|
|
|
player.mineAppliedID = 0; |
|
|
|
player.mineAppliedID = 0; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
Thread.sleep(30000); // 1 minute = 60,000 milliseconds
|
|
|
|
|
|
|
|
} catch (InterruptedException e) { |
|
|
|
|
|
|
|
Thread.currentThread().interrupt(); // Restore the interrupted status
|
|
|
|
|
|
|
|
// Handle the interruption as needed
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
resetZergMultiplier(); |
|
|
|
resetZergMultiplier(); |
|
|
@ -115,6 +121,14 @@ import java.util.HashSet; |
|
|
|
for (PlayerCharacter pc : defenders) { |
|
|
|
for (PlayerCharacter pc : defenders) { |
|
|
|
pc.ZergMultiplier = ZergManager.getCurrentMultiplier(defenders.size(), bane.capSize); |
|
|
|
pc.ZergMultiplier = ZergManager.getCurrentMultiplier(defenders.size(), bane.capSize); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Add a 1-minute delay
|
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
Thread.sleep(30000); // 1 minute = 60,000 milliseconds
|
|
|
|
|
|
|
|
} catch (InterruptedException e) { |
|
|
|
|
|
|
|
Thread.currentThread().interrupt(); // Restore the interrupted status
|
|
|
|
|
|
|
|
// Handle the interruption as needed
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
resetZergMultiplier(); |
|
|
|
resetZergMultiplier(); |
|
|
|