Browse Source

disc droppers spawn 6 hours apart

lakebane-master
FatBoy-DOTC 8 months ago
parent
commit
a492e833e8
  1. 5
      src/engine/mobileAI/MobAI.java
  2. 6
      src/engine/server/world/WorldServer.java

5
src/engine/mobileAI/MobAI.java

@ -855,9 +855,6 @@ public class MobAI { @@ -855,9 +855,6 @@ public class MobAI {
private static void CheckForRespawn(Mob aiAgent) {
try {
if(Mob.disciplineDroppers.contains(aiAgent) == true){
return; // disc dropper respawns handled elsewhere
}
if (aiAgent.deathTime == 0) {
aiAgent.setDeathTime(System.currentTimeMillis());
return;
@ -894,7 +891,7 @@ public class MobAI { @@ -894,7 +891,7 @@ public class MobAI {
}
} else if (System.currentTimeMillis() > (aiAgent.deathTime + (aiAgent.spawnTime * 1000))) {
if (Zone.respawnQue.contains(aiAgent) == false) {
if (Zone.respawnQue.contains(aiAgent) == false && Mob.disciplineDroppers.contains(aiAgent) == false){
Zone.respawnQue.add(aiAgent);
}
}

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

@ -201,7 +201,7 @@ public class WorldServer { @@ -201,7 +201,7 @@ public class WorldServer {
LocalDateTime nextHeartbeatTime = LocalDateTime.now();
LocalDateTime nextPopulationFileTime = LocalDateTime.now();
LocalDateTime nextFlashTrashCheckTime = LocalDateTime.now();
LocalDateTime nextHourlyJobTime = LocalDateTime.now().withMinute(0).withSecond(0).plusHours(1);
LocalDateTime nextHourlyJobTime = LocalDateTime.now().withMinute(0).withSecond(0).plusHours(0);
LocalDateTime nextWareHousePushTime = LocalDateTime.now();
LocalDateTime nextDiscSpawn = LocalDateTime.now().withMinute(0).withSecond(0).plusHours(1);
@ -236,7 +236,7 @@ public class WorldServer { @@ -236,7 +236,7 @@ public class WorldServer {
//}else{
// nextHourlyJobTime = LocalDateTime.now().withMinute(30).withSecond(0);
//}
nextHourlyJobTime = LocalDateTime.now().plusMinutes(1);
nextHourlyJobTime = nextHourlyJobTime.plusMinutes(30);
}
if (LocalDateTime.now().isAfter(nextWareHousePushTime)) {
@ -252,7 +252,7 @@ public class WorldServer { @@ -252,7 +252,7 @@ public class WorldServer {
dropper.respawn();
}
}
nextDiscSpawn = LocalDateTime.now().plusHours(3).withMinute(0).withSecond(0);
nextDiscSpawn = LocalDateTime.now().plusHours(6).withMinute(0).withSecond(0);
}
ThreadUtils.sleep(50);
}

Loading…
Cancel
Save