UNPKG

@zerospacegg/iolin

Version:

Pure TypeScript implementation of ZeroSpace game data processing (PKL-free)

72 lines 2.94 kB
/** * 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 */ import { Attack, Spell } from "../../../../engine/ability.js"; import { ValkaruHeroUnit } from "../../valkaru-classes.js"; import ValkaruMercOutpost from "../building/valkaru-merc-outpost.js"; class Torq extends 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 = [ValkaruMercOutpost.id]; this.unlockedBy = [ValkaruMercOutpost.id]; // Electrifying Hammer attack - starts with this (melee + chain lightning) this.attacks.electrifyingHammer = new 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 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 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"; export default Torq; //# sourceMappingURL=torq.js.map