ZeroSpace.gg

Exalted

Legion T1 Army Unit

import { LegionArmyUnit } from "../../../../defaults/legion.js"; import { Attack, Spell, Upgrade } from "../../../../engine/ability.js"; export class Exalted extends LegionArmyUnit { override uuid: string; static override src = "src/zerospace/faction/legion/unit/exalted.ts"; constructor() { super(); this.hexiteCost = 75; this.fluxCost = 0; this.buildTime = 30; this.buildCount = 1; this.name = "Exalted"; this.tier = "T1"; this.uuid = "04370bdf-9b8b-409a-beda-5a2ce7e17435"; this.internalId = "Troop_Empire_Rhino_C"; this.internalPath = "/Game/Nova/Archetypes_Troops/Troop_Empire_Rhino.Default__Troop_Empire_Rhino_C"; this.internalTags = [ "Attackable.Unit.Troop", "Attackable.Unit.Light", "Attackable.ArmorType.Medium", "Attackable.Biological", "Local.Legion.Infantry.Rhino", "Attackable.Beast", ]; this.internalSecondaryTags = ["Biological", "Infantry"]; this.supply = 2; this.hp = 200; this.shields = 0; this.armor = 0; this.armorType = "medium"; this.speed = 650; this.hotkey = "R"; this.energy = 10; this.vision = 1800; this.turnSpeed = 8000; this.healthRegen = 4.5; this.createdBy = ["faction/legion/building/beastiary"]; this.unlockedBy = ["faction/legion/building/beastiary"]; this.upgradedBy = ["faction/legion/building/citadel"]; this.description = "Fast moving raider. Can jump down cliffs. Attacks ground and air units."; this.attacks.spearOfTheChosen = new Attack({ internalId: "Default__Empire_Rhino_Ranged_C", name: "Spear of the Chosen", damage: 24, cooldown: 1.9, armorPenetration: 0, delay: 0.17, range: 500, targets: ["air", "ground"], bonusDamage: [{ multiplier: 1.5, vs: ["armor:medium"] }], parentId: this.id, parentUUID: this.uuid, }); const unit = this; this.upgrades.maul = new Upgrade({ name: "Maul", unlockedBy: ["faction/legion/building/citadel"], description: "Attacks deal 12 bonus damage (+50% vs Medium) and slow.", tier: "T1", position: "A", fluxCost: 150, researchTime: 60, parentId: this.id, parentUUID: this.uuid, }); this.upgrades.hallowedStrike = new Upgrade({ name: "Hallowed Strike", unlockedBy: ["faction/legion/building/terror-tower"], description: "+4 Attack Rage. \n+200% Damage against Air.", tier: "T2", position: "A", fluxCost: 150, researchTime: 60, apply() { unit.attacks.spearOfTheChosen.range = (unit.attacks.spearOfTheChosen.range || 0) + 300; unit.attacks.spearOfTheChosen.bonusDamage = [ { multiplier: 1.5, vs: ["armor:medium"] }, { multiplier: 2.0, vs: ["flyer"] }, ]; }, parentId: this.id, parentUUID: this.uuid, }); } } export default Exalted;