Browse Source

disc resapwn attempt 2

lakebane-master
FatBoy-DOTC 8 months ago
parent
commit
69aca2c728
  1. 21
      src/engine/server/world/WorldServer.java

21
src/engine/server/world/WorldServer.java

@ -257,12 +257,23 @@ public class WorldServer { @@ -257,12 +257,23 @@ public class WorldServer {
if (LocalDateTime.now().isAfter(nextDiscSpawn)) {
for(Mob dropper : Mob.disciplineDroppers) {
if (dropper.discDelay == 6 && (LocalDateTime.now().getHour() == 6 || LocalDateTime.now().getHour() == 12 || LocalDateTime.now().getHour() == 18 || LocalDateTime.now().getHour() == 0)) {
if (!dropper.isAlive()) {
dropper.respawn();
if(dropper.isAlive() == false){
if(dropper.discDelay == 1) {
if (Zone.respawnQue.contains(dropper) == false) {
Zone.respawnQue.add(dropper);
}
}
} else if (!dropper.isAlive()) {
dropper.respawn();
} else if(dropper.discDelay == 6){
switch(LocalDateTime.now().getHour()){
case 3:
case 9:
case 15:
case 21:
Zone.respawnQue.add(dropper);
break;
}
} else{
Logger.error(dropper.getName() + " Disc Delay Not Set As 1 or 6");
}
}
nextDiscSpawn = LocalDateTime.now().plusHours(1).withMinute(0).withSecond(0);

Loading…
Cancel
Save