ZSGG Public Library
Free Corsairs
Mercenary Faction
import { FreeCorsairsFaction, FreeCorsairsTalent, FreeCorsairsTopbar } from "../../defaults/corsair.js";
class SandbagsTopbar extends FreeCorsairsTopbar {
constructor() {
super();
this.name = "Sandbags";
this.energyCost = 0.5;
this.cooldown = 20;
this.charges = 10;
this.slot = 6;
this.uuid = "d97e9723-985b-49a3-b946-16e2026d4656";
this.unlockedBy = ["mercenary/free-corsairs/building/free-corsair-merc-outpost"];
}
readonly description =
"Drop sandbags at targeted location. Sandbags block enemy shots and movement. Sandbags have 200 HP.";
}
export class FreeCorsairs extends FreeCorsairsFaction {
static override src = "src/zerospace/mercenary/free-corsairs.ts";
constructor() {
super();
this.uuid = "3207bebd-9314-49f3-ad52-e506b7f8877d";
this.name = "Free Corsairs";
this.description =
"Space pirates who strike fear across the stars, the Free Corsairs excel at hit-and-run tactics and ambushes. With heightened vision and speed, they specialize in raiding enemy harvesters and seizing resources, disrupting their foes' economies. Quick and cunning, the Dread leverage hovercrafts, rovers, and crafty traps to outmaneuver stronger forces, leaving chaos—and empty coffers—in their wake.";
this.talents.pillage = new FreeCorsairsTalent({
uuid: "9c5a4563-c60b-41ec-b387-8e14cec9fcd0",
name: "Pillage",
level: 2,
position: "B",
description: "Destroying harvesters and buildings provides hexite",
});
this.talents.plunderedOptics = new FreeCorsairsTalent({
uuid: "24f972f7-63e7-41cb-9602-7d126b56ab5d",
name: "Plundered Optics",
level: 4,
position: "B",
description: "+75% vision & +15% movement speed",
});
this.talents.entrenchedHideouts = new FreeCorsairsTalent({
uuid: "8a7b6c5d-4e3f-2a1b-9c8d-7e6f5a4b3c2d",
name: "Entrenched Hideouts",
level: 6,
position: "B",
description:
"Mercenary Outposts can garrison infantry and gain +600 health, -50% build time, & limit increased to 3.\nMercenary Outposts each spawn a Corsair Raider every 30 seconds.\nSandbags gain 125 Health and land 50% faster.",
});
this.topbars.sandbags = new SandbagsTopbar();
this.units = [
"mercenary/free-corsairs/unit/corsair-flamer",
"mercenary/free-corsairs/unit/corsair-hovercraft",
"mercenary/free-corsairs/unit/corsair-raider",
"mercenary/free-corsairs/unit/corsair-rover",
"mercenary/free-corsairs/unit/corsair-deadeye",
];
this.buildings = ["mercenary/free-corsairs/building/free-corsair-merc-outpost"];
this.heroes = ["mercenary/free-corsairs/hero/yearl"];
}
}
export default FreeCorsairs;