UNPKG

@zerospacegg/iolin

Version:

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

90 lines (78 loc) 4.08 kB
"use strict"; /** * Emperor Sacrifice - Legion ritual enhancement system */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.EmperorSacrificeMechanic = void 0; const mechanic_js_1 = require("../../engine/mechanic.cjs"); const fanatic_js_1 = __importDefault(require("../faction/legion/unit/fanatic.cjs")); const steelsworn_js_1 = __importDefault(require("../faction/legion/unit/steelsworn.cjs")); const thrall_js_1 = __importDefault(require("../faction/legion/unit/thrall.cjs")); class EmperorSacrificeMechanic extends mechanic_js_1.GameMechanic { constructor() { super(); this.name = "Emperor Sacrifice"; this.uuid = "f30c474e-2cde-4036-af79-f8874d8aaad5"; // Get dynamic supply counts from actual units const thrall = new thrall_js_1.default(); const steelsworn = new steelsworn_js_1.default(); const fanatic = new fanatic_js_1.default(); // Simple description for API/JSON usage this.description = "Emperor Sacrifice is the Legion's ritual enhancement system that strengthens the Emperor Projection through strategic thrall unit sacrifice, providing +50 HP and +5 damage per supply point."; // Rich wiki content with {{box}} components this.wiki = ` ## Overview Emperor Sacrifice is the Legion's ritual enhancement system that allows players to strengthen the Emperor Projection through strategic unit sacrifice. {{box-grid}} {{box header="Ritual Process" icon="mdi-fire"}} **Sacred Ceremony Steps** 1. **Create Ritual Site**: Use the Ritual topbar power on an XP Tower 2. **30-Second Window**: You have exactly 30 seconds to perform sacrifices 3. **Unit Positioning**: Only thrall units within the ritual site's radius can be sacrificed 4. **Power Transfer**: Sacrificed units enhance the Emperor Projection {{/box}} {{box header="Enhancement Formula" icon="mdi-sword"}} **Power Per Supply Point** - **+50 HP** per supply point sacrificed - **+5 Attack Damage** per supply point sacrificed - **Supply Cap**: 30 supply points maximum - **Max Bonus**: +1,500 HP and +150 damage {{/box}} {{/box-grid}} ## Sacrificial Units Legion thrall units that can be offered to empower the Emperor: {{box-grid}} {{box header="${thrall.name}" icon="mdi-account"}} **Basic Thrall** - **Supply Value**: ${thrall.supply || "Unknown"} supply points - **HP Contribution**: +${(thrall.supply || 0) * 50} HP to Emperor - **Damage Contribution**: +${(thrall.supply || 0) * 5} attack damage - **[View Unit Details](${thrall.zsggPath})** {{/box}} {{box header="${steelsworn.name}" icon="mdi-shield"}} **Armored Thrall** - **Supply Value**: ${steelsworn.supply || "Unknown"} supply points - **HP Contribution**: +${(steelsworn.supply || 0) * 50} HP to Emperor - **Damage Contribution**: +${(steelsworn.supply || 0) * 5} attack damage - **[View Unit Details](${steelsworn.zsggPath})** {{/box}} {{box header="${fanatic.name}" icon="mdi-auto-fix"}} **Spellcaster Thrall** - **Supply Value**: ${fanatic.supply || "Unknown"} supply points - **HP Contribution**: +${(fanatic.supply || 0) * 50} HP to Emperor - **Damage Contribution**: +${(fanatic.supply || 0) * 5} attack damage - **[View Unit Details](${fanatic.zsggPath})** {{/box}} {{/box-grid}} `; this.references = [thrall.id, steelsworn.id, fanatic.id]; } } exports.EmperorSacrificeMechanic = EmperorSacrificeMechanic; EmperorSacrificeMechanic.src = "src/zerospace/mechanic/emperor-sacrifice.ts"; exports.default = EmperorSacrificeMechanic; //# sourceMappingURL=emperor-sacrifice.js.map