Skip to content

Commit

Permalink
fix: double ai view range of swarm drones
Browse files Browse the repository at this point in the history
* ALLOW PUSH TO MAIN

* add back license spaces

Co-authored-by: ABC <[email protected]>
  • Loading branch information
1 parent aa5d718 commit 2972e96
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Entity/Tank/Projectile/Swarm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ import Drone from "./Drone";
export class Swarm extends Drone {
public constructor(barrel: Barrel, tank: BarrelBase, tankDefinition: TankDefinition | null, shootAngle: number) {
super(barrel, tank, tankDefinition, shootAngle);
this.ai.viewRange = 850 * tank.sizeFactor * 2;
}

// TODO:
// Add the custom resting state AI (after fixing real drone's)
}
}

0 comments on commit 2972e96

Please sign in to comment.