Browse Source

SetLoc for stronghold mobs

lakebane-strongholds
FatBoy-DOTC 4 months ago
parent
commit
f3041e7549
  1. 7
      src/engine/gameManager/StrongholdManager.java

7
src/engine/gameManager/StrongholdManager.java

@ -77,10 +77,6 @@ public class StrongholdManager {
InterestManager.setObjectDirty(guard); InterestManager.setObjectDirty(guard);
mine.strongholdMobs.add(guard); mine.strongholdMobs.add(guard);
LootManager.GenerateStrongholdLoot(guard,false); LootManager.GenerateStrongholdLoot(guard,false);
}
if(guard!= null && guard.level < 60) {
guard.despawn();
}else{
guard.healthMax = 12500; guard.healthMax = 12500;
guard.setHealth(guard.healthMax); guard.setHealth(guard.healthMax);
guard.maxDamageHandOne = 1550; guard.maxDamageHandOne = 1550;
@ -88,6 +84,9 @@ public class StrongholdManager {
guard.atrHandOne = 1800; guard.atrHandOne = 1800;
guard.defenseRating = 2200; guard.defenseRating = 2200;
} }
if(guard!= null && guard.healthMax != 12500) {
guard.despawn();
}
} }
//create stronghold commander //create stronghold commander
Vector3fImmutable loc = tower.loc; Vector3fImmutable loc = tower.loc;

Loading…
Cancel
Save