Allow recovered Sapho at Testing Station
Verify and publish checkpoint container / container (push) Successful in 11m20s
Verify and publish checkpoint container / container (push) Successful in 11m20s
This commit is contained in:
1 parent
1ff520a9fc
commit
05f7fc8f20
12 files changed
+371
-33
No files matched your search
@@ -1829,6 +1829,8 @@ export type Game = {
|
||||
card: string;
|
||||
event: string;
|
||||
mode: 'first' | 'last';
|
||||
/** New reactions reopen the neutral order window after the discard. */
|
||||
stationReplayPriority?: true;
|
||||
resume: NonNullable<Game['pendingNullentropy']>['resume'];
|
||||
stateSignature: string;
|
||||
}
|
||||
@@ -6695,6 +6697,7 @@ type SaphoStationDiscardContinuation = Extract<
|
||||
>;
|
||||
function saphoStationDiscardSignature(g: Game, c: SaphoStationDiscardContinuation) {
|
||||
return JSON.stringify({player:c.player, card:c.card, event:c.event, mode:c.mode,
|
||||
...(c.stationReplayPriority ? {stationReplayPriority:true} : {}),
|
||||
parent:nullentropyParentSignature(g,c.resume,c.event), turn:g.turn, phase:g.phase,
|
||||
order:g.order, ready:g.ready, storm:g.storm, stormPending:g.stormPending,
|
||||
source:g.stormMovementSource, station:g.ecologicalStorm, discoveries:g.discoveries,
|
||||
@@ -10006,6 +10009,7 @@ function semutaOfferSupported(
|
||||
if (continuation.kind === 'saphoStationDiscard') {
|
||||
const frame = g.ecologicalStorm, decision = continuation.resume.decision, receipt = frame?.sapho;
|
||||
return g.semutaPreview === true && g.discoveryEnabled === true && !!g.discoveries &&
|
||||
(continuation.stationReplayPriority === undefined || continuation.stationReplayPriority === true) &&
|
||||
discoveryModeSupported(g) && g.status === 'playing' && g.phase === 0 &&
|
||||
frame?.stage === 'choose' && frame.queue?.choices.length === 0 &&
|
||||
receipt?.event === continuation.event && receipt.holder === continuation.player &&
|
||||
@@ -10856,6 +10860,9 @@ function finishTreacheryDiscard(g: Game, claim?: { player: string; card: string
|
||||
g.decision = next.resume.decision;
|
||||
g.pendingKarama = next.resume.pendingKarama;
|
||||
g.phaseOpening = next.resume.phaseOpening;
|
||||
if (next.stationReplayPriority && g.ecologicalStorm?.stage === 'choose' &&
|
||||
g.ecologicalStorm.queue?.choices.length === 0)
|
||||
g.saphoStationPriority = {event:g.ecologicalStorm.event,passed:[]};
|
||||
} else if (next.kind === 'saphoMovementDiscard') {
|
||||
g.response = next.resume.response;
|
||||
g.decision = next.resume.decision;
|
||||
@@ -30982,6 +30989,7 @@ function playSapho(g: Game, p: Player, action: Action) {
|
||||
if (g.semutaPreview) {
|
||||
const continuation: SaphoStationDiscardContinuation = {
|
||||
kind:'saphoStationDiscard', player:p.id, card:used.id, event:option.event, mode:option.mode,
|
||||
stationReplayPriority:true,
|
||||
resume:{response:g.response, decision:g.decision, pendingKarama:g.pendingKarama, phaseOpening:g.phaseOpening},
|
||||
stateSignature:'',
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user