@zerospacegg/iolin
Version:
Pure TypeScript implementation of ZeroSpace game data processing (PKL-free)
33 lines • 1.57 kB
JavaScript
;
/**
* Titan - Mera Commander Unit
* Clean inheritance from faction Titan with all properties and abilities
*/
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.CoopTitan = void 0;
const titan_js_1 = __importDefault(require("../../../../faction/protectorate/unit/titan.cjs"));
const coop_mera_factory_js_1 = __importDefault(require("../building/coop-mera-factory.cjs"));
const coop_mera_mechanical_research_lab_js_1 = __importDefault(require("../building/coop-mera-mechanical-research-lab.cjs"));
class CoopTitan extends titan_js_1.default {
constructor() {
super();
// Generate composite UUID: {parent-uuid}:coop-mera
this.setVariantUUID("coop-mera");
// Dual unlock system: Building + Commander Level
this.unlockedBy = [
coop_mera_mechanical_research_lab_js_1.default.id, // Building requirement (from parent)
this.commanderLevelId(1), // Commander level 1 requirement
];
// Coop-specific relationships (replicate parent with coop references)
this.createdBy = [coop_mera_factory_js_1.default.id];
this.upgradedBy = [coop_mera_mechanical_research_lab_js_1.default.id];
}
}
exports.CoopTitan = CoopTitan;
// Static property for source path
CoopTitan.src = "src/zerospace/coop/commander/mera/unit/coop-mera-titan.ts";
exports.default = CoopTitan;
//# sourceMappingURL=coop-mera-titan.js.map