UNPKG

@zerospacegg/iolin

Version:

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

66 lines 2.81 kB
"use strict"; /** * Cha'Kru Ghost Crab - Invisible suicide bomber infused with explosive Leviathan essence * Stealth unit that phases through dimensional barriers to deliver devastating explosions */ Object.defineProperty(exports, "__esModule", { value: true }); const chakru_js_1 = require("../../../../defaults/chakru.cjs"); const ability_js_1 = require("../../../../engine/ability.cjs"); class ChakruGhostCrab extends chakru_js_1.ChakruMercUnit { constructor() { super(); // Auto-generated fixes from dev data comparison this.hexiteCost = 10; this.fluxCost = 20; // Fix: HP, Movement Speed - set later in mutable properties section // (hp: 70, speed: 700) this.name = "Cha'Kru Ghost Crab"; this.tier = "T1"; this.hotkey = ""; this.internalId = "Troop_KingdomCrabSmall_C"; this.internalPath = "/Game/Nova/Archetypes_Troops/Troop_KingdomCrabSmall.Default__Troop_KingdomCrabSmall_C"; this.internalTags = [ "Attackable.Unit.Troop", "Attackable.Unit.Light", "Attackable.ArmorType.Light", "Attackable.Biological", "Attackable.Unit.Chakru.B", ]; this.internalSecondaryTags = ["Infantry"]; this.uuid = "3cc3007a-e531-4928-8dfa-9417a78960d4"; this.description = "Light melee unit which explodes and deals aoe damage."; // Mutable properties (can be modified by upgrades) this.shortName = "Ghost Crab"; this.hp = 70; this.shields = 0; this.armor = 0; this.armorType = "light"; this.speed = 700; this.supply = 1; this.turnSpeed = 5000; // TODO: Convert to getter - this.infuseCost = 2; // Relationships this.createdBy = ["mercenary/chakru/building/chakru-temple-of-water"]; this.unlockedBy = ["mercenary/chakru/building/chakru-temple-of-water"]; // Explode attack - Suicide bomber ability this.attacks.explode = new ability_js_1.Attack({ name: "Explode", damage: 40, cooldown: 1, cooldownBetweenShots: 1, armorPenetration: 0, delay: 0, range: 100, targets: ["ground"], splash: { multiplier: 1.0, range: 300 }, bonusDamage: [{ multiplier: 2.0, vs: ["armor:light"] }], description: "Explodes and destroys itself, dealing 40 damage to all nearby enemies with bonus damage vs light armor", parentId: this.id, parentUUID: this.uuid, }); } } // Static property for source path ChakruGhostCrab.src = "src/zerospace/mercenary/chakru/unit/chakru-ghost-crab.ts"; exports.default = ChakruGhostCrab; //# sourceMappingURL=chakru-ghost-crab.js.map