@zerospacegg/iolin
Version:
Pure TypeScript implementation of ZeroSpace game data processing (PKL-free)
26 lines • 1.17 kB
JavaScript
/**
* Predator - Mera Commander Unit
* Clean inheritance from faction Predator with all properties and abilities
*/
import Predator from "../../../../faction/protectorate/unit/predator.js";
export class CoopPredator extends Predator {
constructor() {
super();
this.internalId = undefined;
this.internalPath = undefined;
// 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-factory", // Building requirement (from parent)
this.commanderLevelId(1), // Commander level 1 requirement
];
// Coop-specific relationships (replicate parent with coop references)
this.createdBy = ["coop/commander/mera/building/coop-mera-factory"];
this.upgradedBy = ["coop/commander/mera/building/coop-mera-mechanical-research-lab"];
}
}
// Static property for source path
CoopPredator.src = "src/zerospace/coop/commander/mera/unit/coop-mera-predator.ts";
export default CoopPredator;
//# sourceMappingURL=coop-mera-predator.js.map