trebuchets now have pet AI with canRoam disabled

This commit is contained in:
2023-04-21 20:12:49 -05:00
parent 3329d61636
commit 45ab68caa4
4 changed files with 14 additions and 7 deletions
+3
View File
@@ -950,6 +950,9 @@ public class Mob extends AbstractIntelligenceAgent {
this.setLoc(buildingWorldLoc);
this.endLoc = buildingWorldLoc;
this.stopMovement(endLoc);
if(this.building.getBlueprint().isWallPiece()) {
MovementManager.translocate(this, new Vector3fImmutable(this.building.getLoc().x, this.npcOwner.getLoc().y, this.building.getLoc().z), this.region);
}
return;
}
+3 -2
View File
@@ -1458,7 +1458,7 @@ public class NPC extends AbstractCharacter {
mob.setObjectTypeMask(MBServerStatics.MASK_MOB | mob.getTypeMasks());
// mob.setMob();
//mob.setMob();
mob.setSiege(true);
mob.setParentZone(parent);
@@ -1478,7 +1478,8 @@ public class NPC extends AbstractCharacter {
mob.setSpawnTime(10);
mob.setNpcOwner(this);
mob.region = AbstractWorldObject.GetRegionByWorldObject(mob);
mob.BehaviourType = MobBehaviourType.Pet1;
mob.BehaviourType.canRoam = false;
return mob;
}