Support native Advanced and No-Field movement promises

This commit is contained in:
Quintine committed 2026-10-25 18:54:19 +11:00
1 parent 2ae2b984c0
commit 724eabf99c
20 files changed
+762 -30

No files matched your search

+3 -4
View File
@@ -84,11 +84,10 @@ export function finishMovementPromises<T extends MovementPromise>(
/** Prototype profile/timing only. Actual route feasibility stays authoritative
* in the engine. Truthtrance and an ordinary active Ornithopter may remain. */
export function movementPromiseModeSupported(g: Game): boolean {
// Basic retains its native-family/early-phase prototype. Advanced starts
// with classic factions during Movement; earlier forecasts and expansion
// preparations are separate scope, not implied by this admission.
// Basic retains early-phase admission. Advanced native families use the same
// declared roster during Movement; earlier forecasts/modules stay separate.
return (g.advanced === false ||
g.advanced === true && g.phase === 5 && g.expansions.length === 0) &&
g.advanced === true && g.phase === 5) &&
g.players.length >= 2 && g.players.length <= 6 &&
g.expansions.every(id => ['ix', 'choam', 'ecaz'].includes(id)) &&
new Set(g.expansions).size === g.expansions.length &&