Offer Karama against mandatory advisor ground conversions

Keep completed moves while allowing native advisor-to-fighter conversion to be prevented after empty arrival or the last outsider's ground departure. Bind each queued response to its actual whole group and movement. Shared settlement honors the explicit provisional continuously-alone cancellation duration; setup remains automatic and non-ground producers remain open.

Validation: 16 related files199/199, types/lint/build, five native move/response/GameTable SSR journeys and eight legal existing-profile paths. Native34/36-action public Advanced sources earn original setup/counters/Karama. Existing standard controls render; no new component-callback, browser/deployed or full-mode certificate. No saved-room/D1/restart/deployment operation.
This commit is contained in:
Quintine committed 2026-10-24 19:44:12 +11:00
1 parent 1a505525a8
commit 3aca64412f
15 files changed
+874 -34

No files matched your search

+5 -6
View File
@@ -1,4 +1,5 @@
import type { Game, Player } from './engine';
import { advisorStanceAfterSettlement } from './advisor-automatic-flip';
import { presenceAt, type ForcePresence } from './force-presence';
/** Effective presence includes a concealed No-Field; physical units stay in forces. */
@@ -18,11 +19,9 @@ export function settleAdvisors(g: Game) {
const bg = g.players.find((p) => p.faction === 'beneGesserit');
if (!bg?.advisors) return;
for (const t of Object.keys(bg.advisors)) {
if (
!forceCount(bg, t) ||
!g.players.some((p) => p.id !== bg.id && forceCount(p, t))
)
delete bg.advisors[t];
const stance = advisorStanceAfterSettlement(g, bg, t);
if (stance) bg.advisors[t] = stance;
else delete bg.advisors[t];
}
}
@@ -37,8 +36,8 @@ export function arrivalAsAdvisor(
accompanying = false,
) {
if (!g.advanced || p.faction !== 'beneGesserit') return false;
if (forceCount(p, to)) return isAdvisor(p, to);
if (!g.players.some((other) => other.id !== p.id && forceCount(other, to)))
return false;
if (forceCount(p, to)) return isAdvisor(p, to);
return accompanying || (!!source && isAdvisor(p, source));
}