@zerospacegg/iolin
Version:
Pure TypeScript implementation of ZeroSpace game data processing (PKL-free)
31 lines • 1.71 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.CoopFactory = void 0;
const factory_js_1 = __importDefault(require("../../../../faction/protectorate/building/factory.cjs"));
/**
* Factory - Mera Commander Building
* Clean inheritance from faction Factory with all properties and abilities
*/
class CoopFactory extends factory_js_1.default {
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"];
}
}
exports.CoopFactory = CoopFactory;
CoopFactory.src = "src/zerospace/coop/commander/mera/building/coop-mera-factory.ts";
exports.default = CoopFactory;
//# sourceMappingURL=coop-mera-factory.js.map