ZSGG Public Library
Torq
Valkaru Hero Unit
import { ValkaruHeroUnit } from "../../../../defaults/valkaru.js";
import { Attack, Spell } from "../../../../engine/ability.js";
class Torq extends ValkaruHeroUnit {
override uuid: string;
static override src = "src/zerospace/mercenary/valkaru/hero/torq.ts";
constructor() {
super();
this.hexiteCost = 220;
this.fluxCost = 0;
this.internalId = "Troop_MPHero_Torq_C";
this.internalPath = "/Game/Nova/Archetypes_Heroes/Troop_MPHero_Torq.Default__Troop_MPHero_Torq_C";
this.internalTags = [
"Attackable.Unit.Hero",
"Logic.SpawnAtOldestSpawner",
"Attackable.Biological",
"Logic.NoVeterancy",
];
this.internalSecondaryTags = ["Infantry"];
this.buildCount = 1;
this.rebuildable = true;
this.rebuildTime = 60;
this.name = "Torq";
this.description = "Mondar and Torq can pass each other their hammer, and become enraged when the other dies.";
this.buildTime = 5;
this.hotkey = "";
this.uuid = "e6c09532-7487-4fd6-b3d4-ec99d92caee5";
this.shortName = "Torq";
this.hp = 280;
this.shields = 0;
this.armor = 0;
this.armorType = "hero";
this.speed = 600;
this.vision = 1800;
this.turnSpeed = 6000;
this.pushability = 0.1;
this.createdBy = ["mercenary/valkaru/building/valkaru-merc-outpost"!];
this.unlockedBy = ["mercenary/valkaru/building/valkaru-merc-outpost"!];
this.spawnsWith = { id: "mercenary/valkaru/hero/mondar", name: "Mondar", primary: false };
this.attacks.electrifyingHammer = new Attack({
name: "Electrifying Hammer",
damage: 10,
cooldown: 1.2,
range: 150,
targets: ["ground"],
armorPenetration: 0,
delay: 0.18,
description:
"Devastating melee strikes with mystical hammer that channels chain lightning between multiple enemies",
parentId: this.id,
parentUUID: this.uuid,
});
this.attacks.precisionGun = new Attack({
name: "Precision Gun",
damage: 25,
cooldown: 2.0,
range: 1000,
targets: ["ground"],
delay: 0.8,
splash: { multiplier: 0.5, range: 200 },
description:
"Shock trooper area of effect attack at target location. Can be dodged by moving units. Deals significant AoE damage where projectile lands.",
parentId: this.id,
parentUUID: this.uuid,
});
this.spells.hammerThrow = new Spell({
name: "Hammer Throw",
hotkey: "Q",
energyCost: 0,
cooldown: 6,
range: 1500,
damage: 60,
targets: ["ground"],
description:
"Throw the electrifying hammer to Mondar. The hammer damages enemies for 60 damage on its path, and each hit increases the hammer wielder's attack speed by up to 10%",
parentId: this.id,
parentUUID: this.uuid,
});
}
}
export default Torq;