Ai Players

This commit is contained in:
2025-02-10 19:34:26 -06:00
parent 8ce1054599
commit d76403a0c8
3 changed files with 16 additions and 4 deletions
+4 -2
View File
@@ -60,9 +60,11 @@ public class AiPlayer {
}
public void runAfterLoad(){
WorldGrid.addObject(this.emulated,this.emulated.bindLoc.x,this.emulated.bindLoc.z);
City hamlet = AiPlayerManager.getRandomHamlet();
this.emulated.teleport(Vector3fImmutable.getRandomPointOnCircle(hamlet.getTOL().loc,30));
Vector3fImmutable binder = Vector3fImmutable.getRandomPointOnCircle(hamlet.getTOL().loc,30);
this.emulated.bindLoc = binder;
WorldGrid.addObject(this.emulated,binder.x,binder.z);
this.emulated.setLoc(binder);
WorldGrid.updateObject(this.emulated);
this.emulated.removeEffectBySource(Enum.EffectSourceType.Invisibility,40,true);
this.emulated.removeEffectBySource(Enum.EffectSourceType.Invulnerability,40,true);