Implement Ix High paid Cyborg revival bonus

This commit is contained in:
Quintine committed 2026-10-25 19:39:01 +11:00
1 parent 86608f7ea9
commit 052737d0f9
18 files changed
+929 -12

No files matched your search

+14
View File
@@ -165,6 +165,7 @@ import {
import { IxTechnology } from './ix-technology';
import { MobileStronghold } from './mobile-stronghold';
import { IxSubstitution } from './ix-substitution';
import { IxHomeworldRevivalBonus } from './ix-homeworld-revival';
import { controlsLeader } from '@/game/leader-control';
import { leaderStrengthLabel, harvesterAvailable } from '@/game/cards';
import { RevivalCommerce } from './revival-commerce';
@@ -4435,6 +4436,19 @@ export function GameTable({
</span>
</label>
)}
{me.faction === 'ixians' && (
<IxHomeworldRevivalBonus
enabled={g.revival.ixSuboidBonusEnabled}
blocked={g.revival.freeBlocked}
amount={amount}
elite={eliteAmount}
free={Math.min(amount, g.revival.freeRemaining)}
freeElite={freeCyborgFirst
? Math.min(amount, g.revival.freeRemaining, eliteAmount)
: Math.max(0, Math.min(amount, g.revival.freeRemaining) - (amount - eliteAmount))}
normalTanks={me.tanks - (me.elites?.tanks ?? 0)}
/>
)}
{me.faction === 'emperor' &&
me.ally &&
(() => {