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