ZeroSpace.gg

Corsair Raider

Free-corsairs T1 Merc Unit

import { FreeCorsairsMercUnit } from "../../../../defaults/corsair.js"; import { Attack, Spell } from "../../../../engine/ability.js"; class CorsairRaider extends FreeCorsairsMercUnit { override uuid: string; static override src = "src/zerospace/mercenary/free-corsairs/unit/corsair-raider.ts"; constructor() { super(); this.name = "Corsair Raider"; this.tier = "T1"; this.hexiteCost = 175; this.fluxCost = 0; this.hotkey = "Q"; this.buildCount = 3; this.internalId = "Troop_Dread_Demo_C"; this.internalPath = "/Game/Nova/Archetypes_Troops/Troop_Dread_Demo.Default__Troop_Dread_Demo_C"; this.internalTags = [ "Attackable.Unit.Troop", "Attackable.Unit.Light", "Attackable.ArmorType.Light", "Attackable.Biological", ]; this.internalSecondaryTags = ["Biological", "Infantry"]; this.uuid = "20298043-24f6-48ac-968e-f915c9c2cde5"; this.description = "Light infantry which can steal Hexite from enemies. \nCan jump up and down cliffs."; this.shortName = "Raider"; this.hp = 175; this.shields = 0; this.armor = 0; this.armorType = "light"; this.speed = 650; this.supply = 2; this.turnSpeed = 5000; // TODO: Convert to getter - this.infuseCost = 3; this.createdBy = ["mercenary/free-corsairs/building/free-corsair-merc-outpost"!]; this.unlockedBy = ["mercenary/free-corsairs/building/free-corsair-merc-outpost"!]; this.attacks.attack = new Attack({ name: "S-2 Marksman", damage: 12, cooldown: 1.5, armorPenetration: 0, delay: 0, range: 800, targets: ["air", "ground"], bonusDamage: [{ multiplier: 1.75, vs: ["unit:harvester"] }], parentId: this.id, parentUUID: this.uuid, }); this.spells.thieve = new Spell({ name: "Thieve", cooldown: 60.0, targets: ["ground"], delay: 5.0, description: "60s cooldown. Steals 50 hexite from target main building or harvester after 5 seconds. The owner does not lose resources.", parentId: this.id, parentUUID: this.uuid, }); } } export default CorsairRaider;