ZSGG Public Library
Endari
Mercenary Faction
import { EndariFaction, EndariTalent, EndariTopbar } from "../../defaults/endari.js";
class NightTopbar extends EndariTopbar {
override get type(): string {
return "ability";
}
override description =
"Plunges the worlds into deep night for 30 seconds. \nThe Deep One awakens and roams freely. \nEndari units become stronger (+25% move speed, +25% attack speed, -20% ability cooldowns)";
constructor() {
super();
this.name = "Night";
this.topbarType = "special";
this.energyCost = 30;
this.cooldown = 120;
this.duration = 30;
this.slot = 6;
this.uuid = "78cfe193-2927-4958-aeaf-ecd4ecdd8a70";
}
}
export class Endari extends EndariFaction {
override uuid: string;
static override src = "src/zerospace/mercenary/endari.ts";
constructor() {
super();
this.name = "Endari";
this.uuid = "4895bcc4-ca57-4c4d-ae96-daa138072b45";
// TODO: description coming from a separate source.
this.description = "";
this.mercHeroesAllowed = true;
this.talents.shadowLeeches = new EndariTalent({
name: "Shadow Leeches",
level: 2,
description: "Spawn a group of Shadow Leeches and allow their production.",
unlocks: ["mercenary/endari/unit/endari-shadow-leech"],
});
this.talents.hunters = new EndariTalent({
name: "Hunters",
level: 4,
description: "-20% ability cooldowns. \n+15% attack speed.",
});
this.talents.longNight = new EndariTalent({
name: "Long Night",
level: 6,
description:
"Doubles the Night's duration, and The Deep One's damage and health. \n-20% enemy vision during night.",
});
this.topbars.night = new NightTopbar();
this.units = [
"mercenary/endari/unit/endari-shade",
"mercenary/endari/unit/endari-needler",
"mercenary/endari/unit/endari-drake",
"mercenary/endari/unit/endari-devourer",
"mercenary/endari/unit/endari-shadow-leech",
"mercenary/endari/unit/the-deep-one-night-mode",
"mercenary/endari/unit/endari-impaler",
];
// The Deep One is the Endari merc outpost (fly-then-land recruitment structure).
this.buildings = ["mercenary/endari/building/the-deep-one"];
this.heroes = ["mercenary/endari/hero/she-who-stalks"];
}
}
export default Endari;