ZSGG Public Library
Corsair Deadeye
Free-corsairs T1 Merc Unit
import { FreeCorsairsMercUnit } from "../../../../defaults/corsair.js";
import { Attack } from "../../../../engine/ability.js";
class CorsairDeadeye extends FreeCorsairsMercUnit {
override uuid: string;
static override src = "src/zerospace/mercenary/free-corsairs/unit/corsair-deadeye.ts";
constructor() {
super();
this.hexiteCost = 75;
this.fluxCost = 200;
this.buildCount = 2;
this.name = "Corsair Deadeye";
this.tier = "T1";
this.hotkey = "S";
this.internalId = "Troop_DreadSniper_C";
this.internalPath = "/Game/Nova/Archetypes_Troops/Troop_DreadSniper.Default__Troop_DreadSniper_C";
this.internalTags = [
"Attackable.Unit.Troop",
"Attackable.Unit.Light",
"Attackable.ArmorType.Light",
"Attackable.Biological",
];
this.internalSecondaryTags = ["Biological", "Infantry"];
this.uuid = "01c16a3f-740e-4150-afb4-cbb80efed840";
this.description = "Long range infantry that deals bonus damage vs light units.";
this.shortName = "Deadeye";
this.hp = 100;
this.shields = 100;
this.armor = 0;
this.armorType = "light";
this.speed = 425;
this.supply = 8;
this.vision = 2000;
this.turnSpeed = 4000;
// TODO: Convert to getter - this.infuseCost = 8;
this.createdBy = ["mercenary/free-corsairs/building/free-corsair-merc-outpost"!];
this.unlockedBy = ["mercenary/free-corsairs/building/free-corsair-merc-outpost"!];
this.attacks.attack = new Attack({
name: "H-52 Eagleshot",
damage: 30,
cooldown: 2.2,
armorPenetration: 0,
delay: 0.01,
range: 2000,
targets: ["air", "ground"],
bonusDamage: [{ multiplier: 1.75, vs: ["armor:light"] }],
closeupFirerate: {
threshold: 350,
speedup: 1.75,
},
parentId: this.id,
parentUUID: this.uuid,
});
// this.spells.cripplingShot = new Spell({
// name: "Crippling Shot",
// damage: 50,
// cooldown: 75.0,
// delay: 0.3,
// description: "75s cooldown. deals 50 damage, slows target by 70% for 2 seconds",
// parentId: this.id,
// parentUUID: this.uuid,
// });
}
}
export default CorsairDeadeye;