ZSGG Public Library
Citadel
Legion T2.5 Tech Building
import { LegionTechBuilding } from "../../../../defaults/legion.js";
import { Spell } from "../../../../engine/ability.js";
export class Citadel extends LegionTechBuilding {
override uuid: string;
static override src = "src/zerospace/faction/legion/building/citadel.ts";
constructor() {
super();
this.hexiteCost = 125;
this.fluxCost = 50;
this.buildTime = 45;
this.buildCount = 1;
this.name = "Citadel";
this.description =
"Unlocks Dark Disciples, Mammoths, and the last mercenary unit. \nThralls can be sacrificed on it to increase research speed by +50% fpr 30s.";
this.tier = "T2.5";
this.unlocksMercTier = "T2";
this.uuid = "2765bb2b-a3d5-4afb-a2d7-ab95c5011e65";
this.hp = 2000;
this.armor = 1;
this.armorType = "building";
this.speed = 0;
this.createdBy = ["faction/legion/unit/legion-build-drone"];
this.unlockedBy = ["faction/legion/building/legion-barracks", "faction/legion/building/beastiary"];
this.unlocks = ["faction/legion/building/terror-tower", "faction/legion/building/armory"];
this.providesUpgradesFor = [
"faction/legion/unit/thrall",
"faction/legion/unit/steelsworn",
"faction/legion/unit/dark-disciple",
"faction/legion/unit/exalted",
"faction/legion/unit/mammoth",
];
this.spells.sacrificeThrall = new Spell({
name: "Sacrifice Thrall",
description: "Sacrificing a Thrall reduces the research time of the Citadel",
energyCost: 0,
cooldown: 0,
range: 0,
targets: ["self"],
parentId: this.id,
parentUUID: this.uuid,
});
// Note: Buildings no longer produce units faster in Citadel's radius (engine-level change)
}
}
export default Citadel;