ZSGG Public Library
Endari Shadow Leech
Endari Merc Unit
import { EndariMercUnit } from "../../../../defaults/endari.js";
import { Attack } from "../../../../engine/ability.js";
// Dev tags for this unit omit the Local.Endari tag; transcribed as-is.
class EndariShadowLeech extends EndariMercUnit {
override uuid: string;
static override src = "src/zerospace/mercenary/endari/unit/endari-shadow-leech.ts";
constructor() {
super();
this.hexiteCost = 100;
this.fluxCost = 100;
this.buildCount = 5;
this.name = "Endari Shadow Leech";
this.tier = "";
this.hotkey = "";
this.uuid = "c724479d-6ac2-4735-a0ec-c49274135a67";
this.internalId = "Troop_Endari_ShadowLeech_C";
this.internalPath =
"/Game/Nova/Archetypes_Troops/Multiplayer/Endari/Troop_Endari_ShadowLeech.Default__Troop_Endari_ShadowLeech_C";
this.internalTags = [
"Attackable.Unit.Troop",
"Attackable.Unit.Light",
"Attackable.ArmorType.Light",
"Attackable.Biological",
];
this.internalSecondaryTags = ["Biological"];
this.description =
"A small melee unit that attaches to its target, slowing it by 25% and making it take 5 damage per second for 8 seconds. If the target dies while attached, the Endari Shadow Leech detaches and can attack again.";
this.createdBy = [
"mercenary/endari/building/the-deep-one",
"mercenary/endari/unit/the-deep-one-night-mode",
];
this.unlockedBy = ["faction/endari/talents/shadow-leeches"];
this.hp = 60;
this.shields = 0;
this.armor = 0;
this.armorType = "light";
this.speed = 600;
this.supply = 1;
this.turnSpeed = 5000;
this.vision = 1800;
this.pushability = 1;
this.attacks.attach = new Attack({
name: "Attach",
damage: 5,
range: 100,
cooldown: 1,
armorPenetration: 0,
delay: 0.1,
targets: ["ground"],
parentId: this.id,
parentUUID: this.uuid,
});
}
}
export default EndariShadowLeech;