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",
"Local.Valkaru",
];
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.stunResist = 60;
this.supply = 5; // paired hero: spawns with its partner, 5 each
this.vision = 1800;
this.turnSpeed = 6000;
this.pushability = 0.1;
this.spawnsWith = { id: "mercenary/valkaru/hero/mondar", name: "Mondar", primary: false };
// Torq is the brother without the hammer, so he carries the gun — but casting Hammer Throw
// swaps which of them has which weapon, so both brothers have it. The export lists it on both.
this.attacks.brothersJudgement = new Attack({
internalId: "Default__Weapon_MondarTorq_Ranged_C",
name: "Brother's Judgement",
damage: 12,
cooldown: 1.2,
range: 1200,
targets: ["ground", "air"],
splash: { multiplier: 1, range: 300 },
delay: 0.18,
parentId: this.id,
parentUUID: this.uuid,
});
this.spells.hammerThrow = new Spell({
name: "Hammer Throw",
cooldown: 4.9,
targets: ["ground"],
description:
"Throw the hammer to the other hero. Hammer damages enemy units on its path for 20 damage. \nEach hit increases the attack speed of the hero with the hammer by 8% (up to 80%). Lasts 5 seconds.",
parentId: this.id,
parentUUID: this.uuid,
});
}
}
export default Torq;