guard dogs
This commit is contained in:
@@ -547,7 +547,17 @@ public enum BuildingManager {
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
if (contract.getContractID() == 910) {
|
||||||
|
//guard dog
|
||||||
|
mob = Mob.createMob(contract.getMobbaseID(), Vector3fImmutable.ZERO, contractOwner.getGuild(), true, zone, building, contract.getContractID(), pirateName, rank);
|
||||||
|
|
||||||
|
if (mob == null)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
WorldGrid.addObject(mob, contractOwner);
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
npc = NPC.createNPC(pirateName, contract.getObjectUUID(), Vector3fImmutable.ZERO, contractOwner.getGuild(), false, zone, (short) rank, building);
|
npc = NPC.createNPC(pirateName, contract.getObjectUUID(), Vector3fImmutable.ZERO, contractOwner.getGuild(), false, zone, (short) rank, building);
|
||||||
|
|
||||||
if (npc == null)
|
if (npc == null)
|
||||||
|
|||||||
@@ -1966,7 +1966,9 @@ public class Mob extends AbstractIntelligenceAgent {
|
|||||||
Bounds mobBounds = Bounds.borrow();
|
Bounds mobBounds = Bounds.borrow();
|
||||||
mobBounds.setBounds(this.getLoc());
|
mobBounds.setBounds(this.getLoc());
|
||||||
this.setBounds(mobBounds);
|
this.setBounds(mobBounds);
|
||||||
|
if(this.contract != null && this.contract.getContractID() == 910){
|
||||||
|
this.isPlayerGuard = true;
|
||||||
|
}
|
||||||
//assign 5 random patrol points for regular mobs
|
//assign 5 random patrol points for regular mobs
|
||||||
|
|
||||||
if (!this.isGuard() && !this.isPlayerGuard() && !this.isPet() && !this.isNecroPet() && !this.isSummonedPet() && !this.isCharmedPet()) {
|
if (!this.isGuard() && !this.isPlayerGuard() && !this.isPet() && !this.isNecroPet() && !this.isSummonedPet() && !this.isCharmedPet()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user