Offer Semuta on Tleilaxu revival income cancellation costs

This commit is contained in:
Quintine committed 2026-10-26 00:34:43 +11:00
1 parent 70c95f2686
commit 2431370abb
8 files changed
+513 -1

No files matched your search

+31 -1
View File
@@ -5762,6 +5762,22 @@ function semutaIncomeKaramaResponse(g: Game, response: ResponseWindow): boolean
if (response.kind === 'guildIncome')
return g.phase === 5 && owner?.faction === 'guild' &&
Number.isSafeInteger(response.amount) && response.amount! > 0;
if (response.kind === 'revivalIncome') {
// Ordinary returns and Ghola have already committed. Only their income
// remains; other producers retain their own unfinished parent contracts.
if (response.source !== undefined || g.pendingRevival || g.pendingChoamMarketGhola ||
(g.homeworldRevivalReturn && g.homeworldRevivalReturn.stage !== 'complete') ||
g.pendingHomeworldShipment || g.pendingSpiritualAdvisor ||
g.pendingArrivalOverlap || g.pendingArrivalReaction?.length ||
g.pendingIxMove || g.pendingFremenMove || g.pendingChoamMove ||
g.ornithopter || g.summonedWorm || g.wormRides.length > 0) return false;
try {
return terminalCancellationQuote(g,response)?.kind === 'revivalIncome';
} catch (error) {
if (error instanceof RuleError) return false;
throw error;
}
}
if (owner?.faction !== 'emperor') return false;
if (response.kind === 'emperorIncome')
return g.phase === 3 && !!g.currentAuctionSale &&
@@ -5847,6 +5863,7 @@ function karamaResponseDiscardSignature(g: Game, c: KaramaResponseDiscardContinu
const worthless = c.kind === 'karamaChoamWorthlessDiscard';
const emperorShare = c.kind === 'karamaEmperorShareDiscard';
const income = c.kind === 'karamaIncomeDiscard';
const revivalIncome = income && c.use.response.kind === 'revivalIncome';
const shipment = c.kind === 'karamaShipmentDiscard';
const conversion = c.kind === 'karamaBgConversionCancelDiscard';
const richese = c.kind === 'karamaRicheseAuctionDiscard' || c.kind === 'karamaRicheseGiftDiscard';
@@ -5886,6 +5903,19 @@ function karamaResponseDiscardSignature(g: Game, c: KaramaResponseDiscardContinu
percentages: g.homeworldOccupiedPercentageLedger,
} : undefined,
} : undefined,
...(revivalIncome ? { revivalIncome: {
rules:g.revivalRules, requests:g.revivalRequests, freeIncome:g.revivalFreeIncome,
free:g.freeRevival, emperor:g.emperorExtra, tech:g.techTokens,
homeworldRevival:g.homeworldRevival, return:g.homeworldRevivalReturn,
progress:g.homeworldRevivalProgress, duke:g.dukeVidal,
banker:g.spiceBankerIncome,
players:g.players.map(p => ({
id:p.id, revived:p.revived, freeForcesRevived:p.freeForcesRevived,
leaderRevived:p.leaderRevived, revivalCycle:p.revivalCycle,
ecazRevivalCohort:p.ecazRevivalCohort, gholaBlocked:p.gholaBlocked,
kwisatz:p.kwisatz, leaders:p.leaders,
})),
} } : {}),
shipment: shipment ? {
reserve: g.pendingShipment, transport: g.pendingGuildTransport,
homeworld: g.pendingHomeworldShipment, custody: g.homeworlds,
@@ -15718,7 +15748,7 @@ function spendKarama(g: Game, p: Player, card: Card, use: KaramaUse, kullOffered
: use.response.kind === 'emperorGift' || use.response.kind === 'emperorRevival'
? 'karamaEmperorShareDiscard'
: use.response.kind === 'guildIncome' || use.response.kind === 'emperorIncome' ||
use.response.kind === 'richesePurchaseIncome'
use.response.kind === 'richesePurchaseIncome' || use.response.kind === 'revivalIncome'
? 'karamaIncomeDiscard' : 'karamaBattleDiscard',
player: p.id, card: used.id, use,
resume: { response: g.response, decision: g.decision,
+3
View File
@@ -1290,6 +1290,7 @@ export const RULE_TOPICS: RuleTopic[] = [
'A printed-role Karama stopping Richese’s compulsory cache auction or allied card gift also offers its exact used cost before prevention completes. Claim or Continue resumes that original prevention once. The cache keeps its cards and frozen ordinary count, including any completed Black Market reduction; a prevented gift stays with Richese and its original parent resumes. Recovering Karama does not repeat the attempt, transfer the gift or replay a paid purchase. Existing gift retry protection remains.',
'When Semuta itself was proposed as the now-prevented allied gift, its donor may spend it to claim that counter’s used cost. Prevention first retains Semuta and restores the original parent; the same committed response then spends Semuta and takes the cost, without a second prevention or transfer to the ally. Passing keeps Semuta. Other commitments remain enforced.',
'Printed-role Karama stopping Atreides auction inspection, Ixian auction preparation or Advanced Technology also offers its exact cost before prevention. Claim or Continue resumes the original lot or ordinary draw once, without new inspection, extra Ix choice or exchange. Technology stays used and its original unseen lot remains; the native Atreides peek follows. If outgoing Semuta was selected for that now-prevented exchange, only that reservation releases so Semuta can claim the counter’s cost. Other commitments and independent knowledge remain.',
'Printed-role Karama stopping clean native Tleilaxu revival income offers that exact used cost before income prevention. The ordinary or Ghola revival has already completed: returned forces/leaders, actual payment, normal/free/elite allowance use and the free-income history stay unchanged. Claim or Continue withholds the original income once; taking its counter cannot repeat the revival or recover an already discarded Ghola. Ghola’s own earlier discard is a separate opportunity. Unfinished battle, Ambassador, market and arrival parents retain their separate boundaries.',
'The explicit fresh Leader Skills entry composes Semuta with original all-fourteen-card native Basic Richese/CHOAM or Advanced E1/E2 setup, retaining original Tech and Advanced Stronghold prerequisites. Actual offers train original living discs; the native Auditor remains ineligible. A completed Hajr discard can resume the same Movement owner before an original private Mentat question. Mandatory loser disposal can resume trained Suk casualty rescue or Rihani’s normal private inspection and optional skilled exchange before winner cleanup. Winning compulsory Artillery stays held through the original skill, then becomes its own fresh Treachery discard. Traitor/Face Dancer movement is never a Semuta target; no rescue, question, inspection or exchange repeats. Basic Ix mixtures, E3, other module/Banker overlays and public starts stay separate.',
'The fresh semuta --nexus-cards entry retains original native E1/E2 Nexus setup, optionally explicit Skills and original Tech/Advanced Strongholds. There is no starting Nexus hand: an actual qualifying closing draw follows a Nexus and settled alliance. CHOAM Secret Ally with CHOAM absent spends a Worthless and its Nexus for two bank spice before the public discard offer; CHOAM Betrayal with CHOAM seated commits one random actual hand-card discard without compensation before its private offer. Claim or Continue retires the original receipt once, without another payment or sample. Separate Nexus cards never become Treachery targets. Homeworlds, Discovery, E3, played-save conversion and public starts stay gated.',
'The same original native Nexus entry offers the actual CHOAM Cunning fuel discard for Kulon, Gamont, Baliset, La La La and Jubba. Any eligible held Treachery card keeps its printed identity and private face; there is no fabricated named Worthless. Original cancellation retains fuel and the spent Nexus. After allowance, Commit or Continue resumes the selected effect and parent once: one range bonus, one typed force return and original closing owner, stopped ordinary movement/free revival, or one threatened-territory storm protection. Jubba protects CHOAM forces, not spice; unprotected forces and covered spice still suffer the original storm. Kull retains its separate guard.',
@@ -1424,6 +1425,8 @@ export const RULE_TOPICS: RuleTopic[] = [
'tests/fixture-semuta-ixian-auction.ts',
'tests/semuta-ixian-auction-engine.test.ts',
'tests/semuta-prevented-gift-reservation.test.ts',
'tests/fixture-semuta-revival-income.ts',
'tests/semuta-revival-income-engine.test.ts',
'tests/semuta-homeworld-bg-charity.test.ts',
'tests/semuta-homeworld-emperor-share.test.ts',
'tests/semuta-homeworld-capture-karama.test.ts',