ZeroSpace.gg

Cha'Kru Ghost Crab

Chakru T1 Merc Unit

import { ChakruMercUnit } from "../../../../defaults/chakru.js"; import { Attack } from "../../../../engine/ability.js"; class ChakruGhostCrab extends ChakruMercUnit { override uuid: string; static override src = "src/zerospace/mercenary/chakru/unit/chakru-ghost-crab.ts"; constructor() { super(); this.hexiteCost = 10; this.fluxCost = 20; // Fix: HP, Movement Speed - set later in mutable properties section 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 = ["Biological", "Infantry"]; this.uuid = "3cc3007a-e531-4928-8dfa-9417a78960d4"; this.description = "Light melee unit which explodes, dealing AoE damage."; 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; this.createdBy = ["mercenary/chakru/building/chakru-temple-of-water"!]; this.unlockedBy = ["mercenary/chakru/building/chakru-temple-of-water"!]; this.attacks.explosiveCarapace = new Attack({ name: "Explosive Carapace", damage: 40, cooldown: 1, armorPenetration: 0, delay: 0, range: 100, targets: ["ground"], splash: { multiplier: 1.0, range: 300 }, bonusDamage: [{ multiplier: 2.0, vs: ["armor:light"] }], diesOnUse: true, description: "Explodes and destroys itself, dealing 40 damage to all nearby enemies with bonus damage vs light armor", parentId: this.id, parentUUID: this.uuid, }); } } export default ChakruGhostCrab;