+ {group}
+ {#if group === currentGovernment}Current government
+ {:else if lockedGovernment}{/if}
+
+ {#if governmentGroups.includes(group)}
+ {#if lockedGovernment}
+ Only one government at a time.
+ Switch at end of age ·
+ {:else if !currentGovernment}Only one government at a time. You can switch at the end of an age.{/if}
+
{/if}
+ {#if lockedGovernment && statusFilter === 'available'}{/if}
{#each availableAdvances.filter((a) => a.group === group) as advance, index}{@const presentation =
researchPresentation(advance)}{@const Icon = presentation.icon}{@const parent = advances.find(
(a) => a.id === advance.required,
@@ -242,11 +279,13 @@
>{#if advance.owned}{:else if !advance.action && (actionReason(advance.reason) || (parent && !parent.owned))}{:else if !advance.action && (lockedGovernment || actionReason(advance.reason) || (parent && !parent.owned))}{/if}
@@ -295,7 +334,7 @@
title={`View ${parent.name}`}
onclick={() => showAdvance(parent.id)}>Needs {parent.name}
- {:else}{actionReason(advance.reason)}{/if}{/if}
{#each advances.filter((a) => a.required === advance.id && a.group !== advance.group) as unlocked}
@@ -352,8 +391,7 @@
? 'Ships sail through connected sea tiles. Navigation adds a clockwise or counterclockwise shortcut around the edge to the next sea area. Unexplored regions must be explored before sailing farther.'
: selected.description}