ZeroSpace.gg

Dark Disciple

Legion T2 Army Unit

import { LegionArmyUnit } from "../../../../defaults/legion.js"; import { Attack, Upgrade } from "../../../../engine/ability.js"; export class DarkDisciple extends LegionArmyUnit { override uuid: string; static override src = "src/zerospace/faction/legion/unit/dark-disciple.ts"; override get infuseCost(): number | undefined { return 8; } constructor() { super(); // Fix: Movement Speed this.speed = 450; this.hexiteCost = 50; this.fluxCost = 125; this.buildTime = 48; this.buildCount = 1; this.name = "Dark Disciple"; this.tier = "T2"; this.internalId = "Troop_Empire_Fanatic_C"; this.internalPath = "/Game/Nova/Archetypes_Troops/Troop_Empire_Fanatic.Default__Troop_Empire_Fanatic_C"; this.internalTags = [ "Attackable.Unit.Troop", "Attackable.Unit.Light", "Attackable.ArmorType.Light", "Attackable.Biological", "Local.Legion.Infantry.Psyker", ]; this.internalSecondaryTags = ["Biological", "Infantry"]; this.uuid = "2fb97e7f-e4d5-4517-aa50-a903aed222ca"; this.description = "Light ranged infantry. \nIts damage increases the longer it attacks."; this.supply = 4; this.hp = 180; this.shields = 0; this.armor = 0; this.armorType = "light"; this.turnSpeed = 5000; this.hotkey = "E"; this.createdBy = ["faction/legion/building/legion-barracks"]; this.unlockedBy = ["faction/legion/building/terror-tower"]; this.upgradedBy = ["faction/legion/building/citadel"]; this.tag("legion:thrall"); this.attacks.oblivionsCall = new Attack({ name: "Oblivion's Call", damage: 6, cooldown: 0.8, armorPenetration: 0, delay: 0.13, range: 1400, targets: ["air", "ground"], bonusDamage: [{ multiplier: 2.0, vs: ["armor:heavy"] }], parentId: this.id, parentUUID: this.uuid, }); this.upgrades.frenzy = new Upgrade({ name: "Frenzy", description: "Temporarily gain +35% attack speed when nearby friendly units die", tier: "T3.5", fluxCost: 125, researchTime: 50, apply() {}, parentId: this.id, parentUUID: this.uuid, }); } } export default DarkDisciple;