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 = 4;
this.name = "Endari Shadow Leech";
this.tier = "";
this.hotkey = "N";
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",
"Local.Endari",
];
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/silent-hollow", "mercenary/endari/unit/awoken-hollow"];
this.unlockedBy = ["mercenary/endari/talent/they-writhe"];
this.hp = 80;
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.becomeOne = new Attack({
internalId: "Default__Weapon_Endari_ShadowLeech_C",
name: "Become One",
damage: 5,
range: 100,
cooldown: 1,
armorPenetration: 0,
delay: 0.1,
targets: ["ground"],
parentId: this.id,
parentUUID: this.uuid,
});
}
}
export default EndariShadowLeech;