Browse Source

stronghold guardian fix

lakebane-strongholds
FatBoy-DOTC 4 months ago
parent
commit
5aeddb6166
  1. 2
      src/engine/gameManager/LootManager.java
  2. 4
      src/engine/gameManager/StrongholdManager.java

2
src/engine/gameManager/LootManager.java

@ -684,7 +684,7 @@ public enum LootManager {
MobLoot goldAmount = new MobLoot(mob, gold); MobLoot goldAmount = new MobLoot(mob, gold);
mob.getCharItemManager().addItemToInventory(goldAmount); mob.getCharItemManager().addItemToInventory(goldAmount);
} }
if (ThreadLocalRandom.current().nextInt(100) < 65) if (ThreadLocalRandom.current().nextInt(100) < 75)
DropPresent(mob); DropPresent(mob);
if (commander) { if (commander) {

4
src/engine/gameManager/StrongholdManager.java

@ -75,7 +75,6 @@ public class StrongholdManager {
guard.setResists(new Resists("Elite")); guard.setResists(new Resists("Elite"));
guard.spawnTime = 1000000000; guard.spawnTime = 1000000000;
guard.BehaviourType = Enum.MobBehaviourType.Aggro; guard.BehaviourType = Enum.MobBehaviourType.Aggro;
InterestManager.setObjectDirty(guard);
mine.strongholdMobs.add(guard); mine.strongholdMobs.add(guard);
LootManager.GenerateStrongholdLoot(guard,false); LootManager.GenerateStrongholdLoot(guard,false);
guard.healthMax = 12500; guard.healthMax = 12500;
@ -85,6 +84,7 @@ public class StrongholdManager {
guard.atrHandOne = 1800; guard.atrHandOne = 1800;
guard.defenseRating = 2200; guard.defenseRating = 2200;
guard.setFirstName("Elite Guardian"); guard.setFirstName("Elite Guardian");
InterestManager.setObjectDirty(guard);
} }
} }
//create stronghold commander //create stronghold commander
@ -105,7 +105,6 @@ public class StrongholdManager {
commander.mobPowers.put(429032838,40); // gravechill commander.mobPowers.put(429032838,40); // gravechill
commander.mobPowers.put(429413547,40); // grasp of thurin commander.mobPowers.put(429413547,40); // grasp of thurin
commander.StrongholdCommander = true; commander.StrongholdCommander = true;
InterestManager.setObjectDirty(commander);
mine.strongholdMobs.add(commander); mine.strongholdMobs.add(commander);
LootManager.GenerateStrongholdLoot(commander,true); LootManager.GenerateStrongholdLoot(commander,true);
commander.healthMax = 50000; commander.healthMax = 50000;
@ -115,6 +114,7 @@ public class StrongholdManager {
commander.atrHandOne = 3500; commander.atrHandOne = 3500;
commander.defenseRating = 3500; commander.defenseRating = 3500;
commander.setFirstName("Guardian Commander"); commander.setFirstName("Guardian Commander");
InterestManager.setObjectDirty(commander);
} }
mine.setActive(true); mine.setActive(true);

Loading…
Cancel
Save