Extend Advanced Semuta to CHOAM and Residual Poison
Verify and publish checkpoint container / container (push) Canceled after 0s
Verify and publish checkpoint container / container (push) Canceled after 0s
This commit is contained in:
1 parent
b2bc3f2f01
commit
3a27c29a03
8 files changed
+302
-10
No files matched your search
+16
-7
@@ -9732,6 +9732,10 @@ function semutaOfferSupported(
|
||||
continuation.kind === 'battleResolved' || continuation.kind === 'winnerMandatoryDiscard' ||
|
||||
continuation.kind === 'battleCleanup' && continuation.source === 'winner' ||
|
||||
continuation.kind === 'nullentropyDiscard' || continuation.kind === 'distransDiscard' ||
|
||||
continuation.kind === 'residualPoisonDiscard' || continuation.kind === 'choamSaleDiscard' ||
|
||||
((continuation.kind === 'choamKulonDiscard' || continuation.kind === 'choamLaLaLaDiscard' ||
|
||||
continuation.kind === 'choamBalisetDiscard' || continuation.kind === 'choamGamontDiscard' ||
|
||||
continuation.kind === 'choamJubbaDiscard') && continuation.nexusEvent === undefined) ||
|
||||
continuation.kind === 'truthtranceDiscard' && continuation.promise === null &&
|
||||
(continuation.record.question.kind === 'fact' || continuation.record.question.kind === 'freeform')) ||
|
||||
g.semutaRecruitsPreview === true &&
|
||||
@@ -13259,6 +13263,11 @@ function basicIndependentRecruitsSemutaProfile(g: Game): boolean {
|
||||
function semutaCardProducerEnabled(g: Game): boolean {
|
||||
return g.semutaPreview === true || g.semutaRecruitsPreview === true && basicIndependentRecruitsSemutaProfile(g);
|
||||
}
|
||||
/** The public Advanced profile supports only the explicitly admitted native costs. */
|
||||
function semutaAdvancedNativeProducerEnabled(g: Game): boolean {
|
||||
return semutaCardProducerEnabled(g) ||
|
||||
g.semutaAdvancedOrdinaryPreview === true && bareAdvancedClassicSemutaProfile(g);
|
||||
}
|
||||
/** Bare native Basic starts share the original deck/roster validation. Optional
|
||||
* modules retain their own explicit Semuta envelopes; saved games are not upgraded. */
|
||||
function bareBasicSemutaProfile(g: Game): boolean {
|
||||
@@ -30873,7 +30882,7 @@ function playResidualPoison(
|
||||
`${p.name} played Residual Poison against ${target.name}. ${victim.name} was randomly selected from the available leaders and sent to the Tanks. No spice is awarded, no forces are lost, and battle preparation continues.`,
|
||||
{ faction: p.faction, name: 'Residual Poison' },
|
||||
);
|
||||
if (g.semutaPreview || g.semutaRecruitsPreview && basicIndependentRecruitsSemutaProfile(g)) {
|
||||
if (semutaAdvancedNativeProducerEnabled(g)) {
|
||||
const continuation: ResidualPoisonDiscardContinuation = {
|
||||
kind: 'residualPoisonDiscard', player: p.id, target: target.id,
|
||||
victim: victim.id, battleEvent: b.event!, card: used.id,
|
||||
@@ -37189,7 +37198,7 @@ function finishResponse(g: Game, canceled: boolean, settlement?: BureaucratSettl
|
||||
}
|
||||
if (pending.effect === 'kulon') {
|
||||
rememberMovementDiscards(g, [{ card: used, discardedBy: choam.id, publicFace: pending.nexusEvent === undefined }]);
|
||||
if (semutaCardProducerEnabled(g) && (used.name === 'Kulon' || pending.nexusEvent) &&
|
||||
if (semutaAdvancedNativeProducerEnabled(g) && (used.name === 'Kulon' || pending.nexusEvent) &&
|
||||
!pending.storm && !pending.revival && !pending.movement &&
|
||||
!pending.mentat) {
|
||||
const continuation: ChoamKulonDiscardContinuation = {
|
||||
@@ -37207,7 +37216,7 @@ function finishResponse(g: Game, canceled: boolean, settlement?: BureaucratSettl
|
||||
}
|
||||
completeChoamKulon(g, choam);
|
||||
} else if (pending.effect === 'jubba') {
|
||||
if (semutaCardProducerEnabled(g) && (used.name === 'Jubba Cloak' || pending.nexusEvent) &&
|
||||
if (semutaAdvancedNativeProducerEnabled(g) && (used.name === 'Jubba Cloak' || pending.nexusEvent) &&
|
||||
pending.storm && !pending.revival && !pending.movement &&
|
||||
!pending.mentat) {
|
||||
const continuation: ChoamJubbaDiscardContinuation = {
|
||||
@@ -37224,7 +37233,7 @@ function finishResponse(g: Game, canceled: boolean, settlement?: BureaucratSettl
|
||||
}
|
||||
completeChoamJubba(g, choam, pending.location!);
|
||||
} else if (pending.effect === 'baliset') {
|
||||
if (semutaCardProducerEnabled(g) && (used.name === 'Baliset' || pending.nexusEvent) &&
|
||||
if (semutaAdvancedNativeProducerEnabled(g) && (used.name === 'Baliset' || pending.nexusEvent) &&
|
||||
!pending.storm && !pending.revival && !pending.mentat &&
|
||||
(!pending.movement || (g.pendingChoamMove && !g.pendingChoamMove.source &&
|
||||
!g.pendingChoamMove.ornithopterEvent && !g.pendingChoamMove.ornithopterRange &&
|
||||
@@ -37259,7 +37268,7 @@ function finishResponse(g: Game, canceled: boolean, settlement?: BureaucratSettl
|
||||
if (ambassador) offerAmbassadorRelocation(g);
|
||||
}
|
||||
} else if (pending.effect === 'gamont') {
|
||||
if (semutaCardProducerEnabled(g) && (used.name === 'Trip to Gamont' || pending.nexusEvent) &&
|
||||
if (semutaAdvancedNativeProducerEnabled(g) && (used.name === 'Trip to Gamont' || pending.nexusEvent) &&
|
||||
!pending.storm && !pending.revival && !pending.movement) {
|
||||
const continuation: ChoamGamontDiscardContinuation = {
|
||||
kind: 'choamGamontDiscard', player: choam.id,
|
||||
@@ -37281,7 +37290,7 @@ function finishResponse(g: Game, canceled: boolean, settlement?: BureaucratSettl
|
||||
pending.elite!, pending.noFieldEvent,
|
||||
{ card: used.id, mentat: pending.mentat, nexusEvent: pending.nexusEvent });
|
||||
} else {
|
||||
if (semutaCardProducerEnabled(g) && (used.name === 'La La La' || pending.nexusEvent) &&
|
||||
if (semutaAdvancedNativeProducerEnabled(g) && (used.name === 'La La La' || pending.nexusEvent) &&
|
||||
!pending.storm && !pending.movement && !pending.mentat &&
|
||||
(!pending.revival || (g.pendingRevival?.kind === 'forces' &&
|
||||
g.pendingRevival.player === pending.target))) {
|
||||
@@ -37563,7 +37572,7 @@ function finishResponse(g: Game, canceled: boolean, settlement?: BureaucratSettl
|
||||
owner.spice += sale.price;
|
||||
log(g, `${owner.name} received ${sale.price} spice from the card sale.`);
|
||||
delete market.sale;
|
||||
if (semutaCardProducerEnabled(g)) {
|
||||
if (semutaAdvancedNativeProducerEnabled(g)) {
|
||||
const continuation: ChoamSaleDiscardContinuation = {
|
||||
kind: 'choamSaleDiscard', owner: owner.id, card: used.id,
|
||||
witness: sale.witness ?? null, price: sale.price,
|
||||
|
||||
+1
-1
@@ -1341,7 +1341,7 @@ export const RULE_TOPICS: RuleTopic[] = [
|
||||
? 'In the explicit Richese development preview, every seat sees a neutral response to supported clean discards. A CHOAM & Richese game may include the Ix deck: Thumper pauses before worm/spice draw; Amal pauses after halving spice before opening resumes. Other public sources include ordinary cards, paid Box, Ornithopter, Distrans, definite ordinary Truthtrance answers including queued questions, supported shipment promises and battle answers before or after plan submission/reveal, four clean Sapho scopes, pre-leader Residual Poison, printed Karama canceling clean CHOAM Charity, Inflation or Bene Gesserit Charity, a clean printed Karama normal-auction purchase or winning-bid payment before lot settlement, a completed CHOAM card sale after its bank income, clean Kulon Worthless disposal before its movement bonus, proactive or reactive La La La disposal before blocking free revival, proactive or reactive Baliset before restricting movement, proactive Trip to Gamont before its ordinary/elite return or native No-Field reveal and capped recall, accepted Jubba Cloak before storm protection, and three battle batches. A private normal-auction or Black Market Ixian ally replacement also pauses before drawing, without showing its face until a holder commits; original payment and seller income settle once. Cache purchases cannot use native Ixian allied replacement. Ordinary definite Truthtrance answers pause even when another question stays reserved or the answer bound a supported shipment or unsubmitted battle-plan promise. Submitted/revealed plans bind no new promise, but their answers still offer Semuta without changing the plan. Under the user-selected exchange ruling, Commit may replace Semuta even at your faction hand limit: acquisition and Semuta disposal settle atomically, without increasing your completed hand. Reserved incoming cards still need room. For multiple eligible cards, inspect and select exactly one after commitment. Saved effects resume once. Other private discards, Karama uses, other reactive Worthless uses, inspected Residual Poison battles, nested responses, other pending rewards and wider interactions remain unfinished.'
|
||||
: 'Reference component only: this Richese card’s game actions are not enabled.',
|
||||
...(definition.card.effect === 'semutaDrug' ? [
|
||||
'Fresh Advanced Richese preview games with only the CHOAM expansion deck and classic or CHOAM opponents enable Semuta reactions for supported ordinary Hajr, Ghola, Harvester and Weather Control discards, completed Box and Distrans, simple definite Truthtrance answers and supported battle cleanup. Other discard parents and optional-module combinations remain unfinished. Existing games are not retrofitted.',
|
||||
'Fresh Advanced Richese preview games with only the CHOAM expansion deck and classic or CHOAM opponents enable Semuta reactions for supported ordinary Hajr, Ghola, Harvester and Weather Control discards, completed Box and Distrans, simple definite Truthtrance answers, clean Residual Poison, completed CHOAM sales, supported printed CHOAM Worthless costs and supported battle cleanup. Other discard parents and optional-module combinations remain unfinished. Existing games are not retrofitted.',
|
||||
'Mandatory and winner battle discards also pause before native Advanced Harkonnen capture. Claim or Continue completes the original casualties and card cleanup before the capture offer; it does not sample a captive early or repeat capture. Other pending rewards remain outside this bounded path.',
|
||||
'Mandatory and winner battle discards also pause before native Tleilaxu Face Dance. Claim or Continue preserves the original winner’s casualties and card cleanup, then restores the same private Face Dancer opportunity. Replacement, leader death and force sources remain native; the claimed Treachery card stays with its claimant, and no Face Dancer card becomes a Semuta target.',
|
||||
'Mandatory and winner battle discards also pause before quoted Advanced CHOAM force-payment income. Claim or Continue leaves the original amount unpaid through casualties and card cleanup, then opens the same allow/Karama response. Allow pays once; cancellation sends that income to the bank without refunding the original force payments. The original post-battle market still completes afterward.',
|
||||
|
||||
Reference in new issue
Block a user