Allow chosen Reinforcements reserve costs
Verify and publish checkpoint container / container (push) Successful in 11m11s
Verify and publish checkpoint container / container (push) Successful in 11m11s
This commit is contained in:
1 parent
9dd386ff7a
commit
1cf90f1328
16 files changed
+419
-44
No files matched your search
@@ -632,6 +632,7 @@ function candidatePlan(a: Action): Plan {
|
||||
};
|
||||
if (a.reinforcementsSources !== undefined)
|
||||
plan.reinforcementsSources = a.reinforcementsSources as NativeReserveSelections;
|
||||
if (typeof a.reinforcementsElite === 'number') plan.reinforcementsElite = a.reinforcementsElite;
|
||||
return plan;
|
||||
}
|
||||
function plans(g: GameView): Action[] {
|
||||
@@ -987,6 +988,7 @@ function plans(g: GameView): Action[] {
|
||||
}
|
||||
if (!selectedSources) continue;
|
||||
action.reinforcementsSources = selectedSources;
|
||||
action.reinforcementsElite = Object.values(selectedSources).reduce((sum, forces) => sum + forces.elite, 0);
|
||||
commitment = selectedCommitment;
|
||||
}
|
||||
if (typedForces && !commitment) continue;
|
||||
|
||||
Reference in new issue
Block a user