ZeroSpace.gg

Cha'Kru Ghost Crab

Chakru Co-Op T1 Merc Unit

import { ChakruMercUnit } from "../../../../../defaults/chakru.js"; import { Attack } from "../../../../../engine/ability.js"; class CoopChakruGhostCrab extends ChakruMercUnit { override uuid: string; static override src = "src/zerospace/coop/mercenary/chakru/unit/coop-chakru-ghost-crab.ts"; constructor() { super(); this.hexiteCost = 50; this.fluxCost = 100; this.buildCount = 5; // Fix: HP, Movement Speed - set later in mutable properties section this.name = "Cha'Kru Ghost Crab"; this.tier = "T1"; this.hotkey = "Z"; 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", "Attackable.Unit.Chakru.GhostCrab", ]; this.internalSecondaryTags = ["Biological", "Infantry"]; this.uuid = "9e5d412f-0b2c-4629-b126-abdfd96e9336"; this.description = "Light melee unit which explodes, dealing AoE damage."; this.shortName = "Ghost Crab"; this.hp = 90; this.shields = 0; this.armor = 0; this.armorType = "light"; this.speed = 650; this.supply = 1; this.turnSpeed = 5000; // TODO: Convert to getter - this.infuseCost = 2; this.createdBy = ["coop/mercenary/chakru/building/coop-chakru-temple-of-stars"!]; this.attacks.explosiveCarapace = new Attack({ internalId: "Default__Weapon_SmallCrab_Suicide_C", name: "Explosive Carapace", damage: 80, 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 CoopChakruGhostCrab;