@zerospacegg/iolin
Version:
Pure TypeScript implementation of ZeroSpace game data processing (PKL-free)
24 lines • 1.39 kB
JavaScript
import Factory from "../../../../faction/protectorate/building/factory.js";
/**
* Factory - Mera Commander Building
* Clean inheritance from faction Factory with all properties and abilities
*/
export class CoopFactory extends Factory {
constructor() {
super();
// Generate composite UUID: {parent-uuid}:coop-mera
this.setVariantUUID("coop-mera");
// Dual unlock system: Building + Commander Level
this.unlockedBy = [
"coop/commander/mera/building/coop-mera-prot-barracks", // Barracks requirement
this.commanderLevelId(3), // Commander level 3 requirement
];
// Coop-specific unlock chains - reference coop buildings and units, not faction ones
this.unlocks = ["coop/commander/mera/unit/coop-mera-predator", "coop/commander/mera/unit/coop-mera-ironwing", "coop/commander/mera/building/coop-mera-advanced-factory", "coop/commander/mera/building/coop-mera-mechanical-research-lab"];
this.creates = ["coop/commander/mera/unit/coop-mera-predator", "coop/commander/mera/unit/coop-mera-ironwing", "coop/commander/mera/unit/coop-mera-titan"];
this.createdBy = ["coop/commander/mera/unit/coop-mera-prot-build-drone"];
}
}
CoopFactory.src = "src/zerospace/coop/commander/mera/building/coop-mera-factory.ts";
export default CoopFactory;
//# sourceMappingURL=coop-mera-factory.js.map