From 5aeddb61665246159ce332281a9a4c08cea982b8 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Mon, 8 Jul 2024 21:41:05 -0500 Subject: [PATCH] stronghold guardian fix --- src/engine/gameManager/LootManager.java | 2 +- src/engine/gameManager/StrongholdManager.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/engine/gameManager/LootManager.java b/src/engine/gameManager/LootManager.java index 56c0f699..ca2c7d22 100644 --- a/src/engine/gameManager/LootManager.java +++ b/src/engine/gameManager/LootManager.java @@ -684,7 +684,7 @@ public enum LootManager { MobLoot goldAmount = new MobLoot(mob, gold); mob.getCharItemManager().addItemToInventory(goldAmount); } - if (ThreadLocalRandom.current().nextInt(100) < 65) + if (ThreadLocalRandom.current().nextInt(100) < 75) DropPresent(mob); if (commander) { diff --git a/src/engine/gameManager/StrongholdManager.java b/src/engine/gameManager/StrongholdManager.java index 3384d659..33c72121 100644 --- a/src/engine/gameManager/StrongholdManager.java +++ b/src/engine/gameManager/StrongholdManager.java @@ -75,7 +75,6 @@ public class StrongholdManager { guard.setResists(new Resists("Elite")); guard.spawnTime = 1000000000; guard.BehaviourType = Enum.MobBehaviourType.Aggro; - InterestManager.setObjectDirty(guard); mine.strongholdMobs.add(guard); LootManager.GenerateStrongholdLoot(guard,false); guard.healthMax = 12500; @@ -85,6 +84,7 @@ public class StrongholdManager { guard.atrHandOne = 1800; guard.defenseRating = 2200; guard.setFirstName("Elite Guardian"); + InterestManager.setObjectDirty(guard); } } //create stronghold commander @@ -105,7 +105,6 @@ public class StrongholdManager { commander.mobPowers.put(429032838,40); // gravechill commander.mobPowers.put(429413547,40); // grasp of thurin commander.StrongholdCommander = true; - InterestManager.setObjectDirty(commander); mine.strongholdMobs.add(commander); LootManager.GenerateStrongholdLoot(commander,true); commander.healthMax = 50000; @@ -115,6 +114,7 @@ public class StrongholdManager { commander.atrHandOne = 3500; commander.defenseRating = 3500; commander.setFirstName("Guardian Commander"); + InterestManager.setObjectDirty(commander); } mine.setActive(true);