@zerospacegg/iolin
Version:
Pure TypeScript implementation of ZeroSpace game data processing (PKL-free)
50 lines • 2.02 kB
JavaScript
/**
* Cha'Kru Ghost Crab - Invisible suicide bomber infused with explosive Leviathan essence
* Stealth unit that phases through dimensional barriers to deliver devastating explosions
*/
import { Attack } from "../../../../engine/ability.js";
import { ChakruMercUnit } from "../../chakru-classes.js";
import ChakruTempleOfWater from "../building/chakru-temple-of-water.js";
class ChakruGhostCrab extends 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 = [ChakruTempleOfWater.id];
this.unlockedBy = [ChakruTempleOfWater.id];
// Explode attack - Suicide bomber ability
this.attacks.explode = new 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";
export default ChakruGhostCrab;
//# sourceMappingURL=chakru-ghost-crab.js.map