@zerospacegg/iolin
Version:
Pure TypeScript implementation of ZeroSpace game data processing (PKL-free)
55 lines • 2.35 kB
JavaScript
"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
*/
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 chakru_classes_js_1 = require("../../chakru-classes.cjs");
const chakru_temple_of_water_js_1 = __importDefault(require("../building/chakru-temple-of-water.cjs"));
class ChakruGhostCrab extends chakru_classes_js_1.ChakruMercUnit {
constructor() {
super();
this.name = "Cha'Kru Ghost Crab";
this.tier = "T1";
this.hotkey = "";
this.hexiteCost = 50;
this.fluxCost = 0;
this.buildTime = 20;
this.buildCount = 8;
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 = 80;
this.shields = 0;
this.armor = 0;
this.armorType = "light";
this.speed = 650;
this.supply = 1;
// TODO: Convert to getter - this.infuseCost = 2;
// Relationships
this.createdBy = [chakru_temple_of_water_js_1.default.id];
this.unlockedBy = [chakru_temple_of_water_js_1.default.id];
// Explode attack - Suicide bomber ability
this.attacks.explode = new ability_js_1.Attack({
name: "Explode",
damage: 40,
cooldown: 1,
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