Ai Players
This commit is contained in:
1 parent
8ce1054599
commit
d76403a0c8
3 files changed
+16
-4
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user