@zerospacegg/iolin
Version:
Pure TypeScript implementation of ZeroSpace game data processing (PKL-free)
77 lines • 3.29 kB
JavaScript
"use strict";
/**
* Torq - Twin warrior who starts with the electrifying hammer (melee + chain lightning)
* Spawns together with Mondar, switches roles when hammer is thrown
* Part of the legendary Valkaru twin hero duo that embodies coordinated destruction
*/
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const ability_js_1 = require("../../../../engine/ability.cjs");
const valkaru_classes_js_1 = require("../../valkaru-classes.cjs");
const valkaru_merc_outpost_js_1 = __importDefault(require("../building/valkaru-merc-outpost.cjs"));
class Torq extends valkaru_classes_js_1.ValkaruHeroUnit {
constructor() {
super();
this.name = "Torq";
this.hotkey = "";
this.hexiteCost = 0;
this.fluxCost = 0;
this.buildTime = 20;
this.buildCount = 1;
this.rebuildable = true;
this.rebuildTime = 60;
this.uuid = "e6c09532-7487-4fd6-b3d4-ec99d92caee5";
// Mutable properties (can be modified by upgrades)
this.shortName = "Torq";
this.hp = 280;
this.shields = 0;
this.armor = 0;
this.armorType = "medium";
this.speed = 500;
this.supply = 5; // Half of the original 10 supply (shared with Mondar)
// Relationships
this.createdBy = [valkaru_merc_outpost_js_1.default.id];
this.unlockedBy = [valkaru_merc_outpost_js_1.default.id];
// Electrifying Hammer attack - starts with this (melee + chain lightning)
this.attacks.electrifyingHammer = new ability_js_1.Attack({
name: "Electrifying Hammer",
damage: 10,
cooldown: 1.2,
range: 150,
targets: ["ground"],
description: "Devastating melee strikes with mystical hammer that channels chain lightning between multiple enemies",
parentId: this.id,
parentUUID: this.uuid,
});
// Precision Gun attack - gets this when hammer is thrown away
this.attacks.precisionGun = new ability_js_1.Attack({
name: "Precision Gun",
damage: 8,
cooldown: 1.2,
range: 1200,
targets: ["air", "ground"],
description: "Accurate ranged weapon for air and ground support when not wielding the hammer",
parentId: this.id,
parentUUID: this.uuid,
});
// Hammer Throw spell - signature ability that switches roles with Mondar
this.spells.hammerThrow = new ability_js_1.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,
});
}
}
// Static property for source path
Torq.src = "src/zerospace/mercenary/valkaru/hero/torq.ts";
exports.default = Torq;
//# sourceMappingURL=torq.js.map