uniform disc dropper respawns

This commit is contained in:
2024-03-10 16:29:12 -05:00
parent 13a4ba6e0e
commit b2a3eb3e6e
4 changed files with 17 additions and 2 deletions
+9
View File
@@ -203,6 +203,7 @@ public class WorldServer {
LocalDateTime nextFlashTrashCheckTime = LocalDateTime.now();
LocalDateTime nextHourlyJobTime = LocalDateTime.now().withMinute(0).withSecond(0).plusHours(1);
LocalDateTime nextWareHousePushTime = LocalDateTime.now();
LocalDateTime nextDiscSpawn = LocalDateTime.now().withMinute(0).withSecond(0).plusHours(1);
// Begin execution of main game loop
@@ -245,6 +246,14 @@ public class WorldServer {
nextWareHousePushTime = LocalDateTime.now().plusMinutes(15);
}
if (LocalDateTime.now().isAfter(nextDiscSpawn)) {
for(Mob dropper : Mob.disciplineDroppers){
if(dropper.isAlive() == false){
dropper.respawn();
}
}
nextDiscSpawn = LocalDateTime.now().plusHours(3).withMinute(0).withSecond(0);
}
ThreadUtils.sleep(50);
}
}