UNPKG

@zerospacegg/iolin

Version:

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

134 lines 5.5 kB
"use strict"; /** * Kraegar - Legion's greatest beast hunter hero * Ranged hero with sabretooth companion and area-effect piercing abilities */ Object.defineProperty(exports, "__esModule", { value: true }); exports.Kraegar = void 0; const legion_js_1 = require("../../../../defaults/legion.cjs"); const ability_js_1 = require("../../../../engine/ability.cjs"); class Kraegar extends legion_js_1.LegionHeroUnit { constructor() { super(); // HP will be set at the proper location below this.hexiteCost = 150; this.fluxCost = 150; this.buildTime = 30; this.buildCount = 1; this.name = "Kraegar"; this.internalId = "Troop_Empire_Kraegar_C"; this.internalTags = [ "Attackable.Unit.Hero", "Logic.SpawnAtOldestSpawner", "Attackable.Biological", "Logic.NoVeterancy", ]; this.internalSecondaryTags = ["Infantry"]; this.internalPath = "/Game/Nova/Archetypes_Troops/Troop_Empire_Kraegar.Default__Troop_Empire_Kraegar_C"; this.uuid = "a1f8dbec-3be6-48ad-bf4c-cb14182239da"; // Beast hunter stats - enhanced vision and precision this.hp = 260; this.shields = 0; this.armor = 0; this.armorType = "medium"; this.speed = 500; // Divine purpose this.supply = 10; // Heroes consume supply this.stunResist = 50; // Divine protection this.energy = 100; // Standard hero energy this.vision = 1800; this.turnSpeed = 6000; this.pushability = 0.1; // Costs // Relationships this.createdBy = ["faction/legion/building/altar"]; this.unlockedBy = ["faction/legion/building/altar"]; this.upgradedBy = ["faction/legion/building/armory"]; // Creates sabretooth companion this.creates = ["faction/legion/hero/sabretooth"]; this.unlocks = ["faction/legion/hero/sabretooth"]; // Tags for identification and targeting - none needed for Kraegar // Long-range attack effective against all targets this.attacks.attack = new ability_js_1.Attack({ name: "Attack", damage: 20, range: 1200, cooldown: 1.2, cooldownBetweenShots: 1.2, armorPenetration: 0, delay: 0.01, targets: ["ground", "air"], parentId: this.id, parentUUID: this.uuid, }); // Piercing Shot spell - linear area damage this.spells.piercingShot = new ability_js_1.Spell({ name: "Piercing Shot", hotkey: "E", energyCost: 30, energyType: "classic", cooldown: 8, targets: ["map"], targetMode: "strip", description: "Deals 60 damage in a linear area", parentId: this.id, parentUUID: this.uuid, }); // Speedburst spell - movement speed boost for hunter and companion this.spells.speedburst = new ability_js_1.Spell({ name: "Speedburst", hotkey: "R", energyCost: 15, energyType: "classic", cooldown: 20, targets: ["self"], description: "Kraegar and Sabretooth gain increased movement speed for 10s", parentId: this.id, parentUUID: this.uuid, }); // Speedburst Upgrade - area effect for all allies this.upgrades.speedburstUpgrade = new ability_js_1.Upgrade({ name: "Speedburst Upgrade", description: "Speedburst applies buff to all friendly units around Kraegar (+25% MS for friendlies, still 50% for Kraegar/Sabretooth)", tier: "T2.5", fluxCost: 125, researchTime: 40, parentId: this.id, parentUUID: this.uuid, }); // More Feed upgrade - enhances sabretooth companion this.upgrades.moreFeed = new ability_js_1.Upgrade({ name: "More Feed", description: "Increases max feed count on Sabretooth to 30. Feed bonuses doubled.", tier: "T2.5", fluxCost: 125, researchTime: 40, parentId: this.id, parentUUID: this.uuid, }); // Explosive Warhead upgrade - adds explosion to piercing shot this.upgrades.explosiveWarhead = new ability_js_1.Upgrade({ name: "Explosive Warhead", description: "The piercing shot explodes at the end dealing 300 damage in area. Handling such heavy ammo increases cooldown and channel time", tier: "T3.5", fluxCost: 175, researchTime: 55, parentId: this.id, parentUUID: this.uuid, }); // Killer Instinct upgrade - combat bonuses on hit this.upgrades.killerInstinct = new ability_js_1.Upgrade({ name: "Killer Instinct", description: "Each enemy hit with Piercing shots boosts Kraegar and Sabretooth's attack speed by 35% and movement speed by 10%, Lasts 6 seconds", tier: "T3.5", fluxCost: 175, researchTime: 55, parentId: this.id, parentUUID: this.uuid, }); // Lore - legendary beast hunter with sacred companion bond } } exports.Kraegar = Kraegar; Kraegar.src = "src/zerospace/faction/legion/hero/kraegar.ts"; exports.default = Kraegar; //# sourceMappingURL=kraegar.js.map