Open supported optional modules through normal lobby previews

This commit is contained in:
Quintine committed 2026-10-17 17:22:08 +11:00
1 parent b8ad2f011f
commit 210aa04811
17 files changed
+275 -78

No files matched your search

+3 -1
View File
@@ -897,7 +897,7 @@ function plans(g: GameView): Action[] {
battleSkills, myLeader?.id, !effects.attackerDead,
leaderSkillStrongholdCount(g, other),
);
const ideal = stoneBattle
const rawIdeal = stoneBattle
? 0
: level === 0
? Math.floor(variation(g, `${leader}-${weapon}`) * (own + 1))
@@ -913,6 +913,8 @@ function plans(g: GameView): Action[] {
(b.tieWinner === me.id ? 0 : typedForces ? 0.5 : 1),
),
);
// Untyped forces dial whole counters even against a half-strength opponent.
const ideal = typedForces ? rawIdeal : Math.min(ownStrength, Math.ceil(rawIdeal));
for (const dial of new Set([
ideal,
...bankSupportedDials,