Include Ghola force returns in Basic movement promises
Use exact physical Ghola preparation and known/paid Box recovery without crediting conditional income or normal revival allowances. Guide real force return, paid shipment and qualifying ground movement; retain the existing incomplete-mode and final acceptance boundaries.
This commit is contained in:
1 parent
c311ed4251
commit
49992d322f
14 files changed
+767
-14
No files matched your search
@@ -0,0 +1,16 @@
|
||||
import type { Action } from './engine';
|
||||
|
||||
/** Enumerate physical choices from the owner's current authoritative Ghola
|
||||
* options. This is not a new revival allowance or a strategic shortlist. */
|
||||
export function* gholaForcePreparations(quote: {
|
||||
cards: readonly string[];
|
||||
tanks: number;
|
||||
eliteTanks: number;
|
||||
maxForces: number;
|
||||
eliteRemaining: number;
|
||||
}): Generator<Action> {
|
||||
for (const card of quote.cards) for (let amount = 1; amount <= quote.maxForces; amount++)
|
||||
for (let elite = Math.max(0, amount - (quote.tanks - quote.eliteTanks));
|
||||
elite <= Math.min(amount, quote.eliteTanks, quote.eliteRemaining); elite++)
|
||||
yield { type: 'card', card, amount, elite };
|
||||
}
|
||||
Reference in new issue
Block a user