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