diff --git a/src/Entity/Tank/Projectile/Swarm.ts b/src/Entity/Tank/Projectile/Swarm.ts index c70a2362..6d8be361 100644 --- a/src/Entity/Tank/Projectile/Swarm.ts +++ b/src/Entity/Tank/Projectile/Swarm.ts @@ -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) -} \ No newline at end of file +}