From a6cfe2fb76dc0d1c9fe373062c594ed4eaf57a24 Mon Sep 17 00:00:00 2001 From: fatboy Date: Sat, 20 Apr 2024 00:34:16 -0500 Subject: [PATCH] disc droppers dont spawn at boot --- src/engine/gameManager/LootManager.java | 4 ++++ src/engine/objects/Mob.java | 1 + 2 files changed, 5 insertions(+) diff --git a/src/engine/gameManager/LootManager.java b/src/engine/gameManager/LootManager.java index 64016935..a7bd0bcd 100644 --- a/src/engine/gameManager/LootManager.java +++ b/src/engine/gameManager/LootManager.java @@ -108,6 +108,10 @@ public enum LootManager { mob.level = 60; mob.healthMax = 7500; mob.setHealth(7500); + if(mob.firstSpawn) { + mob.killCharacter("first spawn"); + mob.firstSpawn = false; + } } } diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index 9aa9d42f..97b81dfa 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -81,6 +81,7 @@ public class Mob extends AbstractIntelligenceAgent { private DateTime upgradeDateTime = null; private boolean lootSync = false; public int discDelay = 6; + public boolean firstSpawn = true; // New Mobile constructor. Fill in the blanks and then call // PERSIST.