@zerospacegg/iolin
Version:
Pure TypeScript implementation of ZeroSpace game data processing (PKL-free)
26 lines • 1.13 kB
JavaScript
/**
* Titan - Mera Commander Unit
* Clean inheritance from faction Titan with all properties and abilities
*/
import Titan from "../../../../faction/protectorate/unit/titan.js";
import CoopFactory from "../building/coop-mera-factory.js";
import CoopMechanicalResearchLab from "../building/coop-mera-mechanical-research-lab.js";
export class CoopTitan extends Titan {
constructor() {
super();
// Generate composite UUID: {parent-uuid}:coop-mera
this.setVariantUUID("coop-mera");
// Dual unlock system: Building + Commander Level
this.unlockedBy = [
CoopMechanicalResearchLab.id, // Building requirement (from parent)
this.commanderLevelId(1), // Commander level 1 requirement
];
// Coop-specific relationships (replicate parent with coop references)
this.createdBy = [CoopFactory.id];
this.upgradedBy = [CoopMechanicalResearchLab.id];
}
}
// Static property for source path
CoopTitan.src = "src/zerospace/coop/commander/mera/unit/coop-mera-titan.ts";
export default CoopTitan;
//# sourceMappingURL=coop-mera-titan.js.map