Prototype native Homeworld No-Field return
Verify and publish checkpoint container / container (push) Canceled after 0s

This commit is contained in:
Quintine committed 2026-10-29 04:55:44 +11:00
1 parent 89569e92a1
commit 7e3d745807
17 files changed
+540 -32

No files matched your search

+3 -2
View File
@@ -16,8 +16,9 @@ export function homeworldAllianceBlock(
if (marker) {
const world = worlds.find(row => row.id === marker.homeworld);
const controller = context.players.find(row => row.id === marker.controller);
if (!world || !controller || controller.faction !== 'richese' || world.native === controller.id)
throw new HomeworldCustodyError('Homeworld alliance marker needs its seated Richese controller and an active foreign world.');
if (!world || !controller || controller.faction !== 'richese' ||
world.native === controller.id && !context.advanced)
throw new HomeworldCustodyError('Homeworld alliance marker needs its seated Richese controller and an active foreign world, or its own Homeworld in Advanced.');
if ((world.native === first && controller.id === second) ||
(world.native === second && controller.id === first))
return 'An alliance cannot form while either faction has forces on the other’s Homeworld.';