UNPKG

@zerospacegg/iolin

Version:

Pure TypeScript implementation of ZeroSpace game data processing (PKL-free)

24 lines 1.11 kB
/** * Protectorate Harvester - Mera Commander Unit * Clean inheritance from faction ProtHarvester with all properties and abilities */ import { ProtHarvester } from "../../../../faction/protectorate/unit/prot-harvester.js"; import CoopOperatingTower from "../building/coop-mera-operating-tower.js"; export class CoopProtHarvester extends ProtHarvester { constructor() { super(); this.maxOwned = 3; // Generate composite UUID: {parent-uuid}:coop-mera this.setVariantUUID("coop-mera"); // Dual unlock system: Building + Commander Level this.unlockedBy = [ CoopOperatingTower.id, // Building requirement (proper .id reference) this.commanderLevelId(1), // Commander level 1 requirement (base utility unit) ]; // Coop-specific relationships (replicate parent with coop references) this.createdBy = [CoopOperatingTower.id]; } } CoopProtHarvester.src = "src/zerospace/coop/commander/mera/unit/coop-mera-prot-harvester.ts"; export default CoopProtHarvester; //# sourceMappingURL=coop-mera-prot-harvester.js.map