Compose native Richese No-Field and Stone with Advanced Occupy

This commit is contained in:
Quintine committed 2026-10-03 08:48:26 +10:00
1 parent 03c77604de
commit 113667da55
23 files changed
+985 -246

No files matched your search

+8
View File
@@ -444,6 +444,10 @@ function calculate(input: BattleResolutionInput): BattleResolutionQuote {
const tie = battleTieOwner(a.id, d.id, input.aggressor ?? a.id,
[a, d].filter(side => side.stronghold === 'habbanya_ridge_sietch').map(side => side.id)) === a.id
? 'attacker' : 'defender';
const stoneOccupy = hasStone && input.ecazOccupy ? {
fixedEcazDial: input.ecazOccupy.fixedEcazDial,
ecazUndialed: input.ecazOccupy.canceled ? 0 : Math.floor(input.ecazOccupy.ecazForces.normal / 2),
} : undefined;
const stone = hasStone
? stoneBurnerComparison(
a.forces,
@@ -453,6 +457,10 @@ function calculate(input: BattleResolutionInput): BattleResolutionQuote {
d.plan.dial,
d.plan.support,
tie,
input.ecazOccupy ? {
attacker: input.ecazOccupy.lead === a.id ? stoneOccupy : undefined,
defender: input.ecazOccupy.lead === d.id ? stoneOccupy : undefined,
} : undefined,
)
: null;
if (stone) {