ZSGG Public Library
Endari Drake
Endari T2 Merc Unit
import { EndariMercUnit } from "../../../../defaults/endari.js";
import { Attack, Spell } from "../../../../engine/ability.js";
// Stats from dev unit_data.json. Flavor fields (description, tier, ability naming/targeting)
// are placeholder pending the separate description source. Dev lists a "Line Attack" ability
// with no detail data — omitted until specced.
class EndariDrake extends EndariMercUnit {
override uuid: string;
static override src = "src/zerospace/mercenary/endari/unit/endari-drake.ts";
constructor() {
super();
this.hexiteCost = 125;
this.fluxCost = 125;
this.name = "Endari Drake";
this.tier = "T2";
this.hotkey = "";
this.uuid = "3e66c129-31ba-4e5b-b9e3-9a61d6ab2214";
this.internalId = "Troop_Endari_Drake_C";
this.internalPath = "/Game/Nova/Archetypes_Troops/Troop_Endari_Drake.Default__Troop_Endari_Drake_C";
this.internalTags = [
"Attackable.Unit.Troop",
"Attackable.FlyingUnit",
"Attackable.ArmorType.Medium",
"Local.Endari",
"Attackable.Biological",
];
this.internalSecondaryTags = ["Air", "Biological"];
this.description = "Endari flyer which can attack air and ground and cast Line Attack.";
this.hp = 300;
this.shields = 0;
this.armor = 0;
this.armorType = "medium";
this.domain = "air";
this.speed = 575;
this.supply = 5;
this.turnSpeed = 4000;
this.vision = 1800;
this.pushability = 1;
this.energy = 100;
this.createdBy = [
"mercenary/endari/building/the-deep-one",
"mercenary/endari/unit/the-deep-one-night-mode",
];
this.unlockedBy = ["mercenary/endari/building/the-deep-one"];
this.attacks.voidBlast = new Attack({
name: "Void Blast",
damage: 20,
range: 800,
cooldown: 2.5,
armorPenetration: 0,
delay: 0,
targets: ["ground", "air"],
parentId: this.id,
parentUUID: this.uuid,
});
this.spells.lineAttack = new Spell({
name: "Line Attack",
hotkey: "V",
description:
"Flies quickly to a point, bombarding the ground beneath along the way, dealing damage to nearby enemies.",
damage: 60,
energyCost: 50,
energyType: "classic",
cooldown: 15,
targets: ["map"],
targetMode: "strip",
parentId: this.id,
parentUUID: this.uuid,
});
}
}
export default EndariDrake;