ZSGG Public Library
Endari Shadow Leech
Endari T1 Merc Unit
import { EndariMercUnit } from "../../../../defaults/endari.js";
import { Attack } from "../../../../engine/ability.js";
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 = 2;
this.name = "Endari Shadow Leech";
this.tier = "T1";
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.ShadowLeech",
];
this.internalSecondaryTags = ["Biological"];
this.description =
"Attaches to one target at a time. On an enemy, slows it by 30% and deals 8 damage per second for 12 seconds. On an ally, grants 30% lifesteal and attack speed while still dealing 8 damage per second, lasting until the ally dies. 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.hp = 120;
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: 8,
range: 100,
cooldown: 1,
armorPenetration: 0,
delay: 0.1,
targets: ["ground"],
parentId: this.id,
parentUUID: this.uuid,
});
}
}
export default EndariShadowLeech;