Browse Source

stronghold guardian fix

lakebane-strongholds
FatBoy-DOTC 5 months ago
parent
commit
0cfe801d18
  1. 11
      src/engine/gameManager/StrongholdManager.java

11
src/engine/gameManager/StrongholdManager.java

@ -64,7 +64,8 @@ public class StrongholdManager {
//create elite mobs //create elite mobs
for(int i = 0; i < 10; i++){ for(int i = 0; i < 10; i++){
Vector3fImmutable loc = Vector3fImmutable.getRandomPointOnCircle(tower.loc,30); Vector3fImmutable loc = Vector3fImmutable.getRandomPointOnCircle(tower.loc,30);
Mob guard = Mob.createMob(getStrongholdGuardianID(mine.getParentZone()), loc, Guild.getErrantGuild(),true,mineZone,null,0, "Elite Guardian",65); MobBase guardBase = MobBase.getMobBase(getStrongholdGuardianID(mine.getParentZone()));
Mob guard = Mob.createMob(guardBase.getObjectUUID(), loc, Guild.getErrantGuild(),true,mineZone,null,0, guardBase.getFirstName(),65);
if(guard != null){ if(guard != null){
guard.bindLoc = loc; guard.bindLoc = loc;
guard.setLoc(loc); guard.setLoc(loc);
@ -83,14 +84,13 @@ public class StrongholdManager {
guard.minDamageHandOne = 750; guard.minDamageHandOne = 750;
guard.atrHandOne = 1800; guard.atrHandOne = 1800;
guard.defenseRating = 2200; guard.defenseRating = 2200;
} guard.setFirstName("Elite Guardian");
if(guard != null && guard.healthMax != 12500) {
guard.despawn();
} }
} }
//create stronghold commander //create stronghold commander
Vector3fImmutable loc = tower.loc; Vector3fImmutable loc = tower.loc;
Mob commander = Mob.createMob(getStrongholdCommanderID(mine.getParentZone()), loc,Guild.getErrantGuild(),true,mineZone,null,0, "Guardian Commander",75); MobBase commanderBase = MobBase.getMobBase(getStrongholdCommanderID(mine.getParentZone()));
Mob commander = Mob.createMob(commanderBase.getObjectUUID(), loc,Guild.getErrantGuild(),true,mineZone,null,0, commanderBase.getFirstName(),75);
if(commander != null){ if(commander != null){
commander.bindLoc = loc; commander.bindLoc = loc;
commander.setLoc(loc); commander.setLoc(loc);
@ -114,6 +114,7 @@ public class StrongholdManager {
commander.minDamageHandOne = 1500; commander.minDamageHandOne = 1500;
commander.atrHandOne = 3500; commander.atrHandOne = 3500;
commander.defenseRating = 3500; commander.defenseRating = 3500;
commander.setFirstName("Guardian Commander");
} }
mine.setActive(true); mine.setActive(true);

Loading…
Cancel
Save