fix(viewer): separate Deep Space sectors and polish player counters
This commit is contained in:
parent
8558786fc8
commit
3c4b4d3173
33 changed files with 171 additions and 76 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@gaia-project/old-ui",
|
||||
"version": "1.2.27",
|
||||
"version": "1.2.28",
|
||||
"scripts": {
|
||||
"serve": "vite --port 5193",
|
||||
"build": "vite build",
|
||||
|
|
|
|||
|
|
@ -247,7 +247,7 @@ export default class Commands extends Vue {
|
|||
ret.push({
|
||||
label: "Rotate sectors",
|
||||
command: Command.RotateSectors,
|
||||
hexes: new Map<GaiaHex, {}>(
|
||||
hexes: new Map<GaiaHex, Record<string, never>>(
|
||||
this.map.configuration().centers.map((center) => [this.engine.map.grid.get(center), {}] as const)
|
||||
),
|
||||
rotation: true,
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ export default class MoveButton extends Vue {
|
|||
@Prop()
|
||||
public button: ButtonData;
|
||||
|
||||
private subscription: () => {} = null;
|
||||
private subscription: () => void = null;
|
||||
private modalShow = false;
|
||||
private customLabel = "";
|
||||
private startingHex = null; // For range command
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@gaia-project/viewer",
|
||||
"version": "5.22.27",
|
||||
"version": "5.22.28",
|
||||
"description": "Functions to visualize the map and boards for gaia project inside html canvas",
|
||||
"contributors": [
|
||||
"coyotte508",
|
||||
|
|
|
|||
48
viewer/src/components/MapModeDropdown.spec.ts
Normal file
48
viewer/src/components/MapModeDropdown.spec.ts
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
import Engine from "@gaia-project/engine";
|
||||
import { fireEvent, render } from "@testing-library/vue";
|
||||
import BootstrapVue from "bootstrap-vue";
|
||||
import { expect } from "chai";
|
||||
import Vue from "vue";
|
||||
import { MapModeType } from "../data/actions";
|
||||
import { makeStore, UiMode } from "../store";
|
||||
import PlayerInfo from "./PlayerInfo.vue";
|
||||
import Table from "./Table.vue";
|
||||
|
||||
Vue.use(BootstrapVue);
|
||||
|
||||
for (const [name, component] of [
|
||||
["player board", PlayerInfo],
|
||||
["table", Table],
|
||||
] as const) {
|
||||
describe(`${name} sector dropdown`, () => {
|
||||
for (const lostFleet of [false, true]) {
|
||||
it(`offers separate Deep Space sectors only in Lost Fleet (lostFleet=${lostFleet})`, async () => {
|
||||
const engine = new Engine(["init 2 separate-sector-modes", "p1 faction terrans", "p2 faction xenos"], {
|
||||
lostFleet,
|
||||
});
|
||||
const store = makeStore();
|
||||
store.commit("receiveData", engine);
|
||||
if (component === Table) {
|
||||
store.commit("preferences", { uiMode: UiMode.table });
|
||||
}
|
||||
const props = component === PlayerInfo ? { player: engine.players[0] } : { players: [engine.players[0]] };
|
||||
const { container } = render(component, { props, store });
|
||||
const select = container.querySelector("select");
|
||||
expect(select).not.to.equal(null);
|
||||
expect(select.querySelector('option[value="sectors"]')).not.to.equal(null);
|
||||
const deep = select.querySelector('option[value="deepSpaceSectors"]');
|
||||
expect(deep !== null).to.equal(lostFleet);
|
||||
if (lostFleet) {
|
||||
expect(deep.textContent).to.equal("Deep Space sectors");
|
||||
await fireEvent.change(select, { target: { value: MapModeType.deepSpaceSectors } });
|
||||
expect(store.getters.mapModes).to.deep.equal([{ type: MapModeType.deepSpaceSectors, player: 0 }]);
|
||||
expect(select.value).to.equal(MapModeType.deepSpaceSectors);
|
||||
// Counter clicks and dropdown selection remain synchronized through the shared store.
|
||||
store.commit("toggleMapMode", { type: MapModeType.sectors, player: 0 });
|
||||
await Vue.nextTick();
|
||||
expect(select.value).to.equal(MapModeType.sectors);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
@ -30,7 +30,7 @@ describe("ExplorationSupply local proposal", () => {
|
|||
expect(container.querySelectorAll("path")).to.have.length(1);
|
||||
const symbol = container.querySelector(".shuttle-symbol");
|
||||
expect(symbol.getAttribute("fill")).to.equal("black");
|
||||
expect(symbol.getAttribute("opacity")).to.equal("0.8");
|
||||
expect(symbol.getAttribute("opacity")).to.equal("1");
|
||||
expect(symbol.getAttribute("transform")).to.equal("scale(0.04)");
|
||||
// One silhouette with an actual transparent cockpit cutout, not a white/shaded overlay.
|
||||
expect(symbol.getAttribute("fill-rule")).to.equal("evenodd");
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
class="shuttle-symbol"
|
||||
transform="scale(0.04)"
|
||||
fill="black"
|
||||
opacity="0.8"
|
||||
opacity="1"
|
||||
fill-rule="evenodd"
|
||||
d="M-9 -7 Q-9 -11 -5 -11 H5 Q9 -11 9 -7 V0 L13 10 Q13 12 11 12 H7 L4 5 Q2 2 2 6 V12 H-3 V6 Q-3 2 -5 5 L-8 12 H-12 Q-14 12 -13 9 L-9 0Z M-6 -7 Q-6 -8 -5 -8 H5 Q6 -8 6 -7 V-3 Q6 -2 5 -2 H-5 Q-6 -2 -6 -3Z"
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -42,14 +42,14 @@ describe("PlayerBoardInfo Lost Fleet stats", () => {
|
|||
);
|
||||
});
|
||||
|
||||
it("outlines research counters on Lost Fleet Lantids boards without changing base-game counters", () => {
|
||||
it("outlines research counters on both base-game and Lost Fleet Lantids boards", () => {
|
||||
for (const lostFleet of [false, true]) {
|
||||
const { props, store } = setup(lostFleet, Faction.Lantids);
|
||||
const { container } = render(PlayerBoardInfo, { props, store });
|
||||
const counters = container.querySelectorAll(".research-counter .research-tile");
|
||||
expect(counters).to.have.length(6);
|
||||
for (const counter of Array.from(counters)) {
|
||||
expect(counter.classList.contains("research-tile--outlined")).to.equal(lostFleet);
|
||||
expect(counter.classList.contains("research-tile--outlined")).to.equal(true);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
@ -71,7 +71,7 @@ describe("PlayerBoardInfo Lost Fleet stats", () => {
|
|||
expect(container.querySelector(".board-info > rect").getAttribute("height")).to.equal("8");
|
||||
});
|
||||
|
||||
it("shows separate ordinary and Deep Space tile counts and keeps the combined sector shortcut", async () => {
|
||||
it("shows separate ordinary and Deep Space counts with matching map shortcuts", async () => {
|
||||
const { props, store, player } = setup();
|
||||
player.data.occupied.push(colony("s1", 1), colony("s2", 2), ...[0, 1, 2].map((i) => colony(`DS11_${i}`, 3 + i)));
|
||||
const { container } = render(PlayerBoardInfo, { props, store });
|
||||
|
|
@ -83,6 +83,10 @@ describe("PlayerBoardInfo Lost Fleet stats", () => {
|
|||
expect(deep.querySelectorAll("polygon")).to.have.length(3);
|
||||
expect(deep.querySelector(".deep-space-sector--white")).not.to.equal(null);
|
||||
await fireEvent.click(deep.querySelector("polygon"));
|
||||
expect(store.getters.mapModes).to.deep.equal([{ type: MapModeType.deepSpaceSectors, player: 0 }]);
|
||||
await fireEvent.click(deep.querySelector("polygon"));
|
||||
expect(store.getters.mapModes).to.deep.equal([]);
|
||||
await fireEvent.click(normal.querySelector("image"));
|
||||
expect(store.getters.mapModes).to.deep.equal([{ type: MapModeType.sectors, player: 0 }]);
|
||||
player.data.occupied.push(colony("DS12_0", 6));
|
||||
await Vue.nextTick();
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@
|
|||
v-b-tooltip
|
||||
:title="
|
||||
isLostFleet
|
||||
? 'Space sectors with a colonized planet. Click to highlight all colonized sectors.'
|
||||
? 'Space sectors with a colonized planet. Click to highlight colonized Space sectors.'
|
||||
: 'Sectors with a colonized planet'
|
||||
"
|
||||
>
|
||||
|
|
@ -130,12 +130,12 @@
|
|||
data-board-stat="deep-space-sectors"
|
||||
transform="translate(13, 3.5)"
|
||||
v-b-tooltip
|
||||
title="Deep Space sectors with a colonized planet. Click to highlight all colonized sectors."
|
||||
title="Deep Space sectors with a colonized planet. Click to highlight colonized Deep Space sectors."
|
||||
>
|
||||
<DeepSpaceSector
|
||||
:white="true"
|
||||
transform="scale(0.065)"
|
||||
@click.native="toggleMapMode('sectors')"
|
||||
@click.native="toggleMapMode('deepSpaceSectors')"
|
||||
style="cursor: pointer"
|
||||
/>
|
||||
<text class="board-text" transform="translate(0.9,-.1) scale(0.8)">{{ deepSpaceSectors }}</text>
|
||||
|
|
@ -202,7 +202,7 @@
|
|||
<polygon
|
||||
points="-7.5,3 -3,7.5 3,7.5 7.5,3 7.5,-3 3,-7.5 -3,-7.5 -7.5,-3"
|
||||
:transform="`scale(0.1)`"
|
||||
:class="['board-info', 'research-tile', { 'research-tile--outlined': isLostFleet }, researchClass(i - 1)]"
|
||||
:class="['board-info', 'research-tile', 'research-tile--outlined', researchClass(i - 1)]"
|
||||
:style="`fill: ${researchStyle(i - 1).backgroundColor}`"
|
||||
/>
|
||||
<text class="board-text" transform="scale(0.8)" x="-.35" y="-.15" :style="`fill: ${researchStyle(i - 1).color}`"
|
||||
|
|
|
|||
|
|
@ -752,7 +752,7 @@ export default class PlayerInfo extends Vue {
|
|||
}
|
||||
|
||||
get mapModeTypeOptions() {
|
||||
return mapModeTypeOptions;
|
||||
return mapModeTypeOptions(this.engine.expansions);
|
||||
}
|
||||
|
||||
toggleMapMode(mode: MapModeType) {
|
||||
|
|
|
|||
|
|
@ -433,7 +433,7 @@ export default class SpaceHex extends Vue {
|
|||
}
|
||||
|
||||
get sectorMapMode(): MapMode | null {
|
||||
return this.playerMapMode(MapModeType.sectors);
|
||||
return this.playerMapMode(MapModeType.sectors) ?? this.playerMapMode(MapModeType.deepSpaceSectors);
|
||||
}
|
||||
|
||||
get mapModeHighlight(): PlayerEnum | null {
|
||||
|
|
@ -444,7 +444,8 @@ export default class SpaceHex extends Vue {
|
|||
if (
|
||||
sec &&
|
||||
(this.planet === PlanetEnum.Empty || this.sectorType === LostFleetSectorType.DeepSpace) &&
|
||||
(!sec.spaceSectorsOnly || this.sectorType === LostFleetSectorType.Space) &&
|
||||
this.sectorType ===
|
||||
(sec.type === MapModeType.deepSpaceSectors ? LostFleetSectorType.DeepSpace : LostFleetSectorType.Space) &&
|
||||
isColonizedSector(this.hex, this.player(sec.player))
|
||||
) {
|
||||
return sec.player;
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ import { MapModeType } from "../data/actions";
|
|||
import { sectors as sectorCount } from "../data/stats";
|
||||
import { makeStore } from "../store";
|
||||
import FinalScoringTile from "./FinalScoringTile.vue";
|
||||
import PlayerBoardInfo from "./PlayerBoard/Info.vue";
|
||||
import SpaceMap from "./SpaceMap.vue";
|
||||
|
||||
function position(lostFleet: boolean) {
|
||||
|
|
@ -112,10 +113,7 @@ for (const [name, component] of [
|
|||
|
||||
store.commit("toggleMapMode", { type: MapModeType.sectors, player: PlayerEnum.Player1 });
|
||||
await Vue.nextTick();
|
||||
expect([...highlightedKeys(container, engine)]).to.have.members([
|
||||
...regularKeys,
|
||||
...(lostFleet ? [deepKey] : []),
|
||||
]);
|
||||
expect([...highlightedKeys(container, engine)]).to.have.members(regularKeys);
|
||||
// Exactly the normal positions and polygons: no extra spacing, boundary layer, or strokes
|
||||
// expanding into the normal 1% inter-sector gap. The old .planet + .space-hex-federation
|
||||
// classes brought a 0.1-unit faction stroke, wider than the gap between adjacent sectors.
|
||||
|
|
@ -135,7 +133,11 @@ for (const [name, component] of [
|
|||
expect(highlight.compareDocumentPosition(content) & Node.DOCUMENT_POSITION_FOLLOWING).not.to.equal(0);
|
||||
}
|
||||
if (lostFleet) {
|
||||
const deepHighlights = highlights.filter((node) => node.parentElement.id.startsWith(`${deepKey}_`));
|
||||
store.commit("toggleMapMode", { type: MapModeType.deepSpaceSectors, player: PlayerEnum.Player1 });
|
||||
await Vue.nextTick();
|
||||
expect([...highlightedKeys(container, engine)]).to.have.members([deepKey]);
|
||||
expect(geometry()).to.deep.equal(defaultGeometry);
|
||||
const deepHighlights = [...container.querySelectorAll(".space-hex-sector-highlight")];
|
||||
expect(deepHighlights.length).to.equal(3);
|
||||
// All three have planets: background tint must not depend on an empty hex being available.
|
||||
expect(deepHighlights.every((node) => engine.map.getS(node.parentElement.id).hasPlanet())).to.equal(true);
|
||||
|
|
@ -144,7 +146,9 @@ for (const [name, component] of [
|
|||
}
|
||||
const ring = container.querySelector(".space-hex-power-ring");
|
||||
expect(
|
||||
highlights.every((node) => !!(node.compareDocumentPosition(ring) & Node.DOCUMENT_POSITION_FOLLOWING))
|
||||
[...container.querySelectorAll(".space-hex-sector-highlight")].every(
|
||||
(node) => !!(node.compareDocumentPosition(ring) & Node.DOCUMENT_POSITION_FOLLOWING)
|
||||
)
|
||||
).to.equal(true);
|
||||
expect(container.querySelectorAll("defs").length).to.equal(3);
|
||||
// The visual request must NOT change base sector scoring or the player-board statistic.
|
||||
|
|
@ -153,11 +157,13 @@ for (const [name, component] of [
|
|||
|
||||
store.commit("toggleMapMode", { type: MapModeType.sectors, player: PlayerEnum.Player2 });
|
||||
await Vue.nextTick();
|
||||
expect([...highlightedKeys(container, engine)]).to.have.members([
|
||||
regularKeys[0],
|
||||
otherKeys[0],
|
||||
...(lostFleet ? [deepKey] : []),
|
||||
]);
|
||||
expect([...highlightedKeys(container, engine)]).to.have.members([regularKeys[0], otherKeys[0]]);
|
||||
if (lostFleet) {
|
||||
// Lantids' shared mine grants presence in the physical Deep Space tile, but not Interspace.
|
||||
store.commit("toggleMapMode", { type: MapModeType.deepSpaceSectors, player: PlayerEnum.Player2 });
|
||||
await Vue.nextTick();
|
||||
expect([...highlightedKeys(container, engine)]).to.have.members([deepKey]);
|
||||
}
|
||||
store.commit("toggleMapMode", { type: MapModeType.default, player: PlayerEnum.Player2 });
|
||||
await Vue.nextTick();
|
||||
expect(container.querySelector(".sector-boundaries")).to.equal(null);
|
||||
|
|
@ -168,8 +174,34 @@ for (const [name, component] of [
|
|||
});
|
||||
}
|
||||
|
||||
for (const [name, component] of [
|
||||
["primary", SpaceMap],
|
||||
["alternate", AlternateSpaceMap],
|
||||
] as const) {
|
||||
it(`${name}: the Deep Space counter selects only colonized Deep Space tiles and toggles off`, async () => {
|
||||
const { engine, regularKeys, deepKey } = position(true);
|
||||
const store = makeStore();
|
||||
store.commit("receiveData", engine);
|
||||
const map = render(component, { store });
|
||||
const player = engine.players[0];
|
||||
const info = render(PlayerBoardInfo, {
|
||||
store,
|
||||
props: { player, faction: player.faction, data: player.data, height: 21.4 },
|
||||
});
|
||||
const deep = info.container.querySelector('[data-board-stat="deep-space-sectors"] polygon');
|
||||
await fireEvent.click(deep);
|
||||
expect([...highlightedKeys(map.container, engine)]).to.have.members([deepKey]);
|
||||
expect(map.container.querySelectorAll(".space-hex-sector-highlight")).to.have.length(3);
|
||||
await fireEvent.click(deep);
|
||||
expect(highlightedKeys(map.container, engine).size).to.equal(0);
|
||||
await fireEvent.click(info.container.querySelector('[data-board-stat="sectors"] image'));
|
||||
expect([...highlightedKeys(map.container, engine)]).to.have.members(regularKeys);
|
||||
cleanup();
|
||||
});
|
||||
}
|
||||
|
||||
describe("base final sector-scoring map shortcut", () => {
|
||||
it("excludes Deep Space from its scoring explanation without narrowing the player dropdown view", async () => {
|
||||
it("keeps ordinary sector scoring separate from the Deep Space dropdown view", async () => {
|
||||
const { engine, regularKeys, deepKey } = position(true);
|
||||
engine.tiles.scorings.final[0] = FinalTile.Sector;
|
||||
const store = makeStore();
|
||||
|
|
@ -181,10 +213,13 @@ describe("base final sector-scoring map shortcut", () => {
|
|||
{ type: MapModeType.sectors, player: PlayerEnum.Player1, spaceSectorsOnly: true },
|
||||
]);
|
||||
expect([...highlightedKeys(map.container, engine)]).to.have.members(regularKeys);
|
||||
// Switching back to the ordinary player dropdown restores Deep Space to the visual selection.
|
||||
// Ordinary and Deep Space dropdown choices now explain their corresponding counters separately.
|
||||
store.commit("toggleMapMode", { type: MapModeType.sectors, player: PlayerEnum.Player1 });
|
||||
await Vue.nextTick();
|
||||
expect([...highlightedKeys(map.container, engine)]).to.have.members([...regularKeys, deepKey]);
|
||||
expect([...highlightedKeys(map.container, engine)]).to.have.members(regularKeys);
|
||||
store.commit("toggleMapMode", { type: MapModeType.deepSpaceSectors, player: PlayerEnum.Player1 });
|
||||
await Vue.nextTick();
|
||||
expect([...highlightedKeys(map.container, engine)]).to.have.members([deepKey]);
|
||||
expect(engine.players[0].progress(FinalTile.Sector)).to.equal(2);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ export default class Table extends Vue {
|
|||
}
|
||||
|
||||
get mapModeTypeOptions() {
|
||||
return mapModeTypeOptions;
|
||||
return mapModeTypeOptions(this.engine.expansions);
|
||||
}
|
||||
|
||||
selectedMapMode(player: PlayerEnum): MapModeType {
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ export enum MapModeType {
|
|||
default = "default",
|
||||
federations = "federations",
|
||||
sectors = "sectors",
|
||||
deepSpaceSectors = "deepSpaceSectors",
|
||||
leech = "leech",
|
||||
planetType = "planetType",
|
||||
}
|
||||
|
|
@ -37,8 +38,8 @@ export type MapMode = {
|
|||
type: MapModeType;
|
||||
player?: PlayerEnum;
|
||||
planet?: Planet;
|
||||
/** The base final-scoring shortcut explains Condition.Sector, which excludes Deep Space.
|
||||
* Player-board Sectors mode leaves this unset to show all physical sector tiles instead. */
|
||||
/** Explicit scope marker used by the base final-scoring shortcut. The ordinary Sectors
|
||||
* view also excludes Deep Space; that now has its own deepSpaceSectors view. */
|
||||
spaceSectorsOnly?: boolean;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import type Engine from "@gaia-project/engine";
|
||||
import type { GaiaHex, Player, PlayerEnum } from "@gaia-project/engine";
|
||||
import { Condition } from "@gaia-project/engine";
|
||||
import { Condition, Expansion, hasExpansion } from "@gaia-project/engine";
|
||||
import { sum } from "../logic/lodash-utils";
|
||||
import { leechPlanets, upgradableBuildingsOfOtherPlayers } from "../logic/utils";
|
||||
import { MapModeType } from "./actions";
|
||||
|
|
@ -32,9 +32,14 @@ export function leechNetwork(engine: Engine, player: PlayerEnum): number {
|
|||
);
|
||||
}
|
||||
|
||||
export const mapModeTypeOptions = [
|
||||
{ value: MapModeType.default, text: "Default" },
|
||||
{ value: MapModeType.sectors, text: "Sectors" },
|
||||
{ value: MapModeType.federations, text: "Federations" },
|
||||
{ value: MapModeType.leech, text: "Charge Network" },
|
||||
];
|
||||
export function mapModeTypeOptions(expansions: Expansion) {
|
||||
return [
|
||||
{ value: MapModeType.default, text: "Default" },
|
||||
{ value: MapModeType.sectors, text: "Sectors" },
|
||||
...(hasExpansion(expansions, Expansion.LostFleet)
|
||||
? [{ value: MapModeType.deepSpaceSectors, text: "Deep Space sectors" }]
|
||||
: []),
|
||||
{ value: MapModeType.federations, text: "Federations" },
|
||||
{ value: MapModeType.leech, text: "Charge Network" },
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4151,8 +4151,8 @@
|
|||
"Edit this move": "Rediger dette træk",
|
||||
"Return to end": "Tilbage til slutningen",
|
||||
"Exploration shuttles remaining: {p0} of {p1}": "Resterende udforskningsfærger: {p0} af {p1}",
|
||||
"Space sectors with a colonized planet. Click to highlight all colonized sectors.": "Rumsektorer med en koloniseret planet. Klik for at fremhæve alle koloniserede sektorer.",
|
||||
"Deep Space sectors with a colonized planet. Click to highlight all colonized sectors.": "Dybrumssektorer med en koloniseret planet. Klik for at fremhæve alle koloniserede sektorer.",
|
||||
"Space sectors with a colonized planet. Click to highlight colonized Space sectors.": "Rumsektorer med en koloniseret planet. Klik for at fremhæve koloniserede rumsektorer.",
|
||||
"Deep Space sectors with a colonized planet. Click to highlight colonized Deep Space sectors.": "Dybrumssektorer med en koloniseret planet. Klik for at fremhæve koloniserede dybrumssektorer.",
|
||||
"Twilight — Nautilaks": "Twilight — Nautilakker",
|
||||
"Rebellion — Vo'Kron": "Rebellion — Vo'Kron",
|
||||
"T F Mars — Gaia Federation": "T F Mars — Gaia Føderation",
|
||||
|
|
|
|||
|
|
@ -4151,8 +4151,8 @@
|
|||
"Edit this move": "Diesen Zug bearbeiten",
|
||||
"Return to end": "Zum Ende zurückkehren",
|
||||
"Exploration shuttles remaining: {p0} of {p1}": "Verbleibende Erkundungsshuttles: {p0} von {p1}",
|
||||
"Space sectors with a colonized planet. Click to highlight all colonized sectors.": "Weltraumsektoren mit einem kolonisierten Planeten. Klicken, um alle kolonisierten Sektoren hervorzuheben.",
|
||||
"Deep Space sectors with a colonized planet. Click to highlight all colonized sectors.": "Deep-Space-Sektoren mit einem kolonisierten Planeten. Klicken, um alle kolonisierten Sektoren hervorzuheben.",
|
||||
"Space sectors with a colonized planet. Click to highlight colonized Space sectors.": "Weltraumsektoren mit einem kolonisierten Planeten. Klicken, um kolonisierte Weltraumsektoren hervorzuheben.",
|
||||
"Deep Space sectors with a colonized planet. Click to highlight colonized Deep Space sectors.": "Deep-Space-Sektoren mit einem kolonisierten Planeten. Klicken, um kolonisierte Deep-Space-Sektoren hervorzuheben.",
|
||||
"Twilight — Nautilaks": "Twilight — Nautilaks",
|
||||
"Rebellion — Vo'Kron": "Rebellion — Vo'Kron",
|
||||
"T F Mars — Gaia Federation": "T F Mars — Gaia-Föderation",
|
||||
|
|
|
|||
|
|
@ -4151,8 +4151,8 @@
|
|||
"Edit this move": "Επεξεργασία αυτής της κίνησης",
|
||||
"Return to end": "Επιστροφή στο τέλος",
|
||||
"Exploration shuttles remaining: {p0} of {p1}": "Εναπομείναντα σκάφη εξερεύνησης: {p0} από {p1}",
|
||||
"Space sectors with a colonized planet. Click to highlight all colonized sectors.": "Διαστημικοί τομείς με αποικισμένο πλανήτη. Κάντε κλικ για να επισημάνετε όλους τους αποικισμένους τομείς.",
|
||||
"Deep Space sectors with a colonized planet. Click to highlight all colonized sectors.": "Τομείς βαθέος διαστήματος με αποικισμένο πλανήτη. Κάντε κλικ για να επισημάνετε όλους τους αποικισμένους τομείς.",
|
||||
"Space sectors with a colonized planet. Click to highlight colonized Space sectors.": "Διαστημικοί τομείς με αποικισμένο πλανήτη. Κάντε κλικ για να επισημάνετε τους αποικισμένους διαστημικούς τομείς.",
|
||||
"Deep Space sectors with a colonized planet. Click to highlight colonized Deep Space sectors.": "Τομείς βαθέος διαστήματος με αποικισμένο πλανήτη. Κάντε κλικ για να επισημάνετε τους αποικισμένους τομείς βαθέος διαστήματος.",
|
||||
"Twilight — Nautilaks": "Twilight — Nautilaks",
|
||||
"Rebellion — Vo'Kron": "Rebellion — Vo'Kron",
|
||||
"T F Mars — Gaia Federation": "T F Mars — Ομοσπονδία Gaia",
|
||||
|
|
|
|||
|
|
@ -4151,8 +4151,8 @@
|
|||
"Edit this move": "Edit this move",
|
||||
"Return to end": "Return to end",
|
||||
"Exploration shuttles remaining: {p0} of {p1}": "Exploration shuttles remaining: {p0} of {p1}",
|
||||
"Space sectors with a colonized planet. Click to highlight all colonized sectors.": "Space sectors with a colonized planet. Click to highlight all colonized sectors.",
|
||||
"Deep Space sectors with a colonized planet. Click to highlight all colonized sectors.": "Deep Space sectors with a colonized planet. Click to highlight all colonized sectors.",
|
||||
"Space sectors with a colonized planet. Click to highlight colonized Space sectors.": "Space sectors with a colonized planet. Click to highlight colonized Space sectors.",
|
||||
"Deep Space sectors with a colonized planet. Click to highlight colonized Deep Space sectors.": "Deep Space sectors with a colonized planet. Click to highlight colonized Deep Space sectors.",
|
||||
"Twilight — Nautilaks": "Twilight — Nautilaks",
|
||||
"Rebellion — Vo'Kron": "Rebellion — Vo'Kron",
|
||||
"T F Mars — Gaia Federation": "T F Mars — Gaia Federation",
|
||||
|
|
|
|||
|
|
@ -4151,8 +4151,8 @@
|
|||
"Edit this move": "ویرایش این حرکت",
|
||||
"Return to end": "بازگشت به پایان",
|
||||
"Exploration shuttles remaining: {p0} of {p1}": "شاتلهای اکتشافی باقیمانده: {p0} از {p1}",
|
||||
"Space sectors with a colonized planet. Click to highlight all colonized sectors.": "بخشهای فضایی دارای سیارهٔ مستعمرهشده. برای برجستهکردن همهٔ بخشهای مستعمرهشده کلیک کنید.",
|
||||
"Deep Space sectors with a colonized planet. Click to highlight all colonized sectors.": "بخشهای فضای عمیق دارای سیارهٔ مستعمرهشده. برای برجستهکردن همهٔ بخشهای مستعمرهشده کلیک کنید.",
|
||||
"Space sectors with a colonized planet. Click to highlight colonized Space sectors.": "بخشهای فضایی دارای سیارهٔ مستعمرهشده. برای برجستهکردن بخشهای فضایی مستعمرهشده کلیک کنید.",
|
||||
"Deep Space sectors with a colonized planet. Click to highlight colonized Deep Space sectors.": "بخشهای فضای عمیق دارای سیارهٔ مستعمرهشده. برای برجستهکردن بخشهای فضای عمیق مستعمرهشده کلیک کنید.",
|
||||
"Twilight — Nautilaks": "Twilight — نوتیلاک",
|
||||
"Rebellion — Vo'Kron": "Rebellion — وُکرون",
|
||||
"T F Mars — Gaia Federation": "T F Mars — فدراسیون گایا",
|
||||
|
|
|
|||
|
|
@ -4151,8 +4151,8 @@
|
|||
"Edit this move": "Modifier ce coup",
|
||||
"Return to end": "Revenir à la fin",
|
||||
"Exploration shuttles remaining: {p0} of {p1}": "Navettes d’exploration restantes : {p0} sur {p1}",
|
||||
"Space sectors with a colonized planet. Click to highlight all colonized sectors.": "Secteurs spatiaux avec une planète colonisée. Cliquez pour mettre en évidence tous les secteurs colonisés.",
|
||||
"Deep Space sectors with a colonized planet. Click to highlight all colonized sectors.": "Secteurs de l’espace profond avec une planète colonisée. Cliquez pour mettre en évidence tous les secteurs colonisés.",
|
||||
"Space sectors with a colonized planet. Click to highlight colonized Space sectors.": "Secteurs spatiaux avec une planète colonisée. Cliquez pour mettre en évidence les secteurs spatiaux colonisés.",
|
||||
"Deep Space sectors with a colonized planet. Click to highlight colonized Deep Space sectors.": "Secteurs de l’espace profond avec une planète colonisée. Cliquez pour mettre en évidence les secteurs de l’espace profond colonisés.",
|
||||
"Twilight — Nautilaks": "Twilight — Nautilaks",
|
||||
"Rebellion — Vo'Kron": "Rebellion — Vo'Kron",
|
||||
"T F Mars — Gaia Federation": "T F Mars — Alliance Gaia",
|
||||
|
|
|
|||
|
|
@ -4151,8 +4151,8 @@
|
|||
"Edit this move": "इस चाल को संपादित करें",
|
||||
"Return to end": "अंत पर लौटें",
|
||||
"Exploration shuttles remaining: {p0} of {p1}": "शेष अन्वेषण शटल: {p1} में से {p0}",
|
||||
"Space sectors with a colonized planet. Click to highlight all colonized sectors.": "उपनिवेशित ग्रह वाले अंतरिक्ष क्षेत्र। सभी उपनिवेशित क्षेत्रों को हाइलाइट करने के लिए क्लिक करें।",
|
||||
"Deep Space sectors with a colonized planet. Click to highlight all colonized sectors.": "उपनिवेशित ग्रह वाले गहरे अंतरिक्ष क्षेत्र। सभी उपनिवेशित क्षेत्रों को हाइलाइट करने के लिए क्लिक करें।",
|
||||
"Space sectors with a colonized planet. Click to highlight colonized Space sectors.": "उपनिवेशित ग्रह वाले अंतरिक्ष क्षेत्र। उपनिवेशित अंतरिक्ष क्षेत्रों को हाइलाइट करने के लिए क्लिक करें।",
|
||||
"Deep Space sectors with a colonized planet. Click to highlight colonized Deep Space sectors.": "उपनिवेशित ग्रह वाले गहरे अंतरिक्ष क्षेत्र। उपनिवेशित गहरे अंतरिक्ष क्षेत्रों को हाइलाइट करने के लिए क्लिक करें।",
|
||||
"Twilight — Nautilaks": "Twilight — नॉटिलैक्स",
|
||||
"Rebellion — Vo'Kron": "Rebellion — Vo'Kron",
|
||||
"T F Mars — Gaia Federation": "T F Mars — गैया महासंघ",
|
||||
|
|
|
|||
|
|
@ -4151,8 +4151,8 @@
|
|||
"Edit this move": "Modifica questa mossa",
|
||||
"Return to end": "Torna alla fine",
|
||||
"Exploration shuttles remaining: {p0} of {p1}": "Navette di esplorazione rimanenti: {p0} su {p1}",
|
||||
"Space sectors with a colonized planet. Click to highlight all colonized sectors.": "Settori spaziali con un pianeta colonizzato. Clicca per evidenziare tutti i settori colonizzati.",
|
||||
"Deep Space sectors with a colonized planet. Click to highlight all colonized sectors.": "Settori dello spazio profondo con un pianeta colonizzato. Clicca per evidenziare tutti i settori colonizzati.",
|
||||
"Space sectors with a colonized planet. Click to highlight colonized Space sectors.": "Settori spaziali con un pianeta colonizzato. Clicca per evidenziare i settori spaziali colonizzati.",
|
||||
"Deep Space sectors with a colonized planet. Click to highlight colonized Deep Space sectors.": "Settori dello spazio profondo con un pianeta colonizzato. Clicca per evidenziare i settori dello spazio profondo colonizzati.",
|
||||
"Twilight — Nautilaks": "Twilight — Nautilaks",
|
||||
"Rebellion — Vo'Kron": "Rebellion — Vo'Kron",
|
||||
"T F Mars — Gaia Federation": "T F Mars — Federazione Gaia",
|
||||
|
|
|
|||
|
|
@ -4151,8 +4151,8 @@
|
|||
"Edit this move": "이 수 수정",
|
||||
"Return to end": "끝으로 돌아가기",
|
||||
"Exploration shuttles remaining: {p0} of {p1}": "남은 탐사 셔틀: {p1}개 중 {p0}개",
|
||||
"Space sectors with a colonized planet. Click to highlight all colonized sectors.": "식민지가 있는 우주 구역. 클릭하면 식민지가 있는 모든 구역이 강조 표시됩니다.",
|
||||
"Deep Space sectors with a colonized planet. Click to highlight all colonized sectors.": "식민지가 있는 심우주 구역. 클릭하면 식민지가 있는 모든 구역이 강조 표시됩니다.",
|
||||
"Space sectors with a colonized planet. Click to highlight colonized Space sectors.": "식민지가 있는 우주 구역. 클릭하면 식민지가 있는 우주 구역이 강조 표시됩니다.",
|
||||
"Deep Space sectors with a colonized planet. Click to highlight colonized Deep Space sectors.": "식민지가 있는 심우주 구역. 클릭하면 식민지가 있는 심우주 구역이 강조 표시됩니다.",
|
||||
"Twilight — Nautilaks": "Twilight — 노틸락",
|
||||
"Rebellion — Vo'Kron": "Rebellion — 보크론",
|
||||
"T F Mars — Gaia Federation": "T F Mars — 가이아 연방",
|
||||
|
|
|
|||
|
|
@ -15,8 +15,9 @@ describe("Lost Fleet counter localization", () => {
|
|||
expect(translated).not.toMatch(/\{p\d\}/);
|
||||
}
|
||||
for (const source of [
|
||||
"Space sectors with a colonized planet. Click to highlight all colonized sectors.",
|
||||
"Deep Space sectors with a colonized planet. Click to highlight all colonized sectors.",
|
||||
"Deep Space sectors",
|
||||
"Space sectors with a colonized planet. Click to highlight colonized Space sectors.",
|
||||
"Deep Space sectors with a colonized planet. Click to highlight colonized Deep Space sectors.",
|
||||
]) {
|
||||
expect(translator.translate(source)).not.toBe(source);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4151,8 +4151,8 @@
|
|||
"Edit this move": "Deze zet bewerken",
|
||||
"Return to end": "Terug naar het einde",
|
||||
"Exploration shuttles remaining: {p0} of {p1}": "Resterende verkenningsshuttles: {p0} van {p1}",
|
||||
"Space sectors with a colonized planet. Click to highlight all colonized sectors.": "Ruimtesectoren met een gekoloniseerde planeet. Klik om alle gekoloniseerde sectoren te markeren.",
|
||||
"Deep Space sectors with a colonized planet. Click to highlight all colonized sectors.": "Dieperuimtesectoren met een gekoloniseerde planeet. Klik om alle gekoloniseerde sectoren te markeren.",
|
||||
"Space sectors with a colonized planet. Click to highlight colonized Space sectors.": "Ruimtesectoren met een gekoloniseerde planeet. Klik om gekoloniseerde ruimtesectoren te markeren.",
|
||||
"Deep Space sectors with a colonized planet. Click to highlight colonized Deep Space sectors.": "Dieperuimtesectoren met een gekoloniseerde planeet. Klik om gekoloniseerde dieperuimtesectoren te markeren.",
|
||||
"Twilight — Nautilaks": "Twilight — Nautilaks",
|
||||
"Rebellion — Vo'Kron": "Rebellion — Vo'Kron",
|
||||
"T F Mars — Gaia Federation": "T F Mars — Gaia-federatie",
|
||||
|
|
|
|||
|
|
@ -4151,8 +4151,8 @@
|
|||
"Edit this move": "Edytuj ten ruch",
|
||||
"Return to end": "Wróć na koniec",
|
||||
"Exploration shuttles remaining: {p0} of {p1}": "Pozostałe wahadłowce eksploracyjne: {p0} z {p1}",
|
||||
"Space sectors with a colonized planet. Click to highlight all colonized sectors.": "Sektory kosmiczne ze skolonizowaną planetą. Kliknij, aby podświetlić wszystkie skolonizowane sektory.",
|
||||
"Deep Space sectors with a colonized planet. Click to highlight all colonized sectors.": "Sektory głębokiej przestrzeni ze skolonizowaną planetą. Kliknij, aby podświetlić wszystkie skolonizowane sektory.",
|
||||
"Space sectors with a colonized planet. Click to highlight colonized Space sectors.": "Sektory kosmiczne ze skolonizowaną planetą. Kliknij, aby podświetlić skolonizowane sektory kosmiczne.",
|
||||
"Deep Space sectors with a colonized planet. Click to highlight colonized Deep Space sectors.": "Sektory głębokiej przestrzeni ze skolonizowaną planetą. Kliknij, aby podświetlić skolonizowane sektory głębokiej przestrzeni.",
|
||||
"Twilight — Nautilaks": "Twilight — Nautilaks",
|
||||
"Rebellion — Vo'Kron": "Rebellion — Vo'Kron",
|
||||
"T F Mars — Gaia Federation": "T F Mars — Federacja Gaja",
|
||||
|
|
|
|||
|
|
@ -4151,8 +4151,8 @@
|
|||
"Edit this move": "Editar esta jogada",
|
||||
"Return to end": "Voltar ao final",
|
||||
"Exploration shuttles remaining: {p0} of {p1}": "Naves de exploração restantes: {p0} de {p1}",
|
||||
"Space sectors with a colonized planet. Click to highlight all colonized sectors.": "Setores espaciais com um planeta colonizado. Clique para destacar todos os setores colonizados.",
|
||||
"Deep Space sectors with a colonized planet. Click to highlight all colonized sectors.": "Setores do espaço profundo com um planeta colonizado. Clique para destacar todos os setores colonizados.",
|
||||
"Space sectors with a colonized planet. Click to highlight colonized Space sectors.": "Setores espaciais com um planeta colonizado. Clique para destacar os setores espaciais colonizados.",
|
||||
"Deep Space sectors with a colonized planet. Click to highlight colonized Deep Space sectors.": "Setores do espaço profundo com um planeta colonizado. Clique para destacar os setores do espaço profundo colonizados.",
|
||||
"Twilight — Nautilaks": "Twilight — Nautilaks",
|
||||
"Rebellion — Vo'Kron": "Rebellion — Vo'Kron",
|
||||
"T F Mars — Gaia Federation": "T F Mars — Federação Gaia",
|
||||
|
|
|
|||
|
|
@ -4151,8 +4151,8 @@
|
|||
"Edit this move": "Editează această mutare",
|
||||
"Return to end": "Revino la final",
|
||||
"Exploration shuttles remaining: {p0} of {p1}": "Navete de explorare rămase: {p0} din {p1}",
|
||||
"Space sectors with a colonized planet. Click to highlight all colonized sectors.": "Sectoare spațiale cu o planetă colonizată. Clic pentru a evidenția toate sectoarele colonizate.",
|
||||
"Deep Space sectors with a colonized planet. Click to highlight all colonized sectors.": "Sectoare de spațiu îndepărtat cu o planetă colonizată. Clic pentru a evidenția toate sectoarele colonizate.",
|
||||
"Space sectors with a colonized planet. Click to highlight colonized Space sectors.": "Sectoare spațiale cu o planetă colonizată. Clic pentru a evidenția sectoarele spațiale colonizate.",
|
||||
"Deep Space sectors with a colonized planet. Click to highlight colonized Deep Space sectors.": "Sectoare de spațiu îndepărtat cu o planetă colonizată. Clic pentru a evidenția sectoarele de spațiu îndepărtat colonizate.",
|
||||
"Twilight — Nautilaks": "Twilight — Nautilaks",
|
||||
"Rebellion — Vo'Kron": "Rebellion — Vo'Kron",
|
||||
"T F Mars — Gaia Federation": "T F Mars — Federația Gaia",
|
||||
|
|
|
|||
|
|
@ -4151,8 +4151,8 @@
|
|||
"Edit this move": "Изменить этот ход",
|
||||
"Return to end": "Вернуться в конец",
|
||||
"Exploration shuttles remaining: {p0} of {p1}": "Осталось исследовательских шаттлов: {p0} из {p1}",
|
||||
"Space sectors with a colonized planet. Click to highlight all colonized sectors.": "Космические секторы с колонизированной планетой. Нажмите, чтобы выделить все колонизированные секторы.",
|
||||
"Deep Space sectors with a colonized planet. Click to highlight all colonized sectors.": "Секторы дальнего космоса с колонизированной планетой. Нажмите, чтобы выделить все колонизированные секторы.",
|
||||
"Space sectors with a colonized planet. Click to highlight colonized Space sectors.": "Космические секторы с колонизированной планетой. Нажмите, чтобы выделить колонизированные космические секторы.",
|
||||
"Deep Space sectors with a colonized planet. Click to highlight colonized Deep Space sectors.": "Секторы дальнего космоса с колонизированной планетой. Нажмите, чтобы выделить колонизированные секторы глубокого космоса.",
|
||||
"Twilight — Nautilaks": "Twilight — Наутилаки",
|
||||
"Rebellion — Vo'Kron": "Rebellion — Во'Крон",
|
||||
"T F Mars — Gaia Federation": "T F Mars — Федерация Геи",
|
||||
|
|
|
|||
|
|
@ -4151,8 +4151,8 @@
|
|||
"Edit this move": "Chỉnh sửa nước đi này",
|
||||
"Return to end": "Trở về cuối",
|
||||
"Exploration shuttles remaining: {p0} of {p1}": "Tàu con thoi thám hiểm còn lại: {p0} trên {p1}",
|
||||
"Space sectors with a colonized planet. Click to highlight all colonized sectors.": "Các khu vực không gian có hành tinh đã thuộc địa hóa. Nhấp để làm nổi bật tất cả khu vực đã thuộc địa hóa.",
|
||||
"Deep Space sectors with a colonized planet. Click to highlight all colonized sectors.": "Các khu vực không gian sâu có hành tinh đã thuộc địa hóa. Nhấp để làm nổi bật tất cả khu vực đã thuộc địa hóa.",
|
||||
"Space sectors with a colonized planet. Click to highlight colonized Space sectors.": "Các khu vực không gian có hành tinh đã thuộc địa hóa. Nhấp để làm nổi bật các khu vực không gian đã thuộc địa hóa.",
|
||||
"Deep Space sectors with a colonized planet. Click to highlight colonized Deep Space sectors.": "Các khu vực không gian sâu có hành tinh đã thuộc địa hóa. Nhấp để làm nổi bật các khu vực không gian sâu đã thuộc địa hóa.",
|
||||
"Twilight — Nautilaks": "Twilight — Nautilaks",
|
||||
"Rebellion — Vo'Kron": "Rebellion — Vo'Kron",
|
||||
"T F Mars — Gaia Federation": "T F Mars — Liên bang Gaia",
|
||||
|
|
|
|||
|
|
@ -4151,8 +4151,8 @@
|
|||
"Edit this move": "编辑此行动",
|
||||
"Return to end": "返回末尾",
|
||||
"Exploration shuttles remaining: {p0} of {p1}": "剩余探索穿梭机:{p0}/{p1}",
|
||||
"Space sectors with a colonized planet. Click to highlight all colonized sectors.": "有殖民星球的太空星区。点击以标示所有已殖民星区。",
|
||||
"Deep Space sectors with a colonized planet. Click to highlight all colonized sectors.": "有殖民星球的深空星区。点击以标示所有已殖民星区。",
|
||||
"Space sectors with a colonized planet. Click to highlight colonized Space sectors.": "有殖民星球的太空星区。点击以标示已殖民太空星区。",
|
||||
"Deep Space sectors with a colonized planet. Click to highlight colonized Deep Space sectors.": "有殖民星球的深空星区。点击以标示已殖民深空星区。",
|
||||
"Twilight — Nautilaks": "Twilight — 鹦鹉螺星人",
|
||||
"Rebellion — Vo'Kron": "Rebellion — 沃克隆族",
|
||||
"T F Mars — Gaia Federation": "T F Mars — 盖亚星际联邦",
|
||||
|
|
|
|||
|
|
@ -4151,8 +4151,8 @@
|
|||
"Edit this move": "編輯此行動",
|
||||
"Return to end": "返回末尾",
|
||||
"Exploration shuttles remaining: {p0} of {p1}": "剩餘探索穿梭機:{p0}/{p1}",
|
||||
"Space sectors with a colonized planet. Click to highlight all colonized sectors.": "有殖民星球的太空星區。點擊以標示所有已殖民星區。",
|
||||
"Deep Space sectors with a colonized planet. Click to highlight all colonized sectors.": "有殖民星球的深空星區。點擊以標示所有已殖民星區。",
|
||||
"Space sectors with a colonized planet. Click to highlight colonized Space sectors.": "有殖民星球的太空星區。點擊以標示已殖民太空星區。",
|
||||
"Deep Space sectors with a colonized planet. Click to highlight colonized Deep Space sectors.": "有殖民星球的深空星區。點擊以標示已殖民深空星區。",
|
||||
"Twilight — Nautilaks": "Twilight — 諾提拉斯",
|
||||
"Rebellion — Vo'Kron": "Rebellion — Vo'Kron",
|
||||
"T F Mars — Gaia Federation": "T F Mars — Gaia 聯邦",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue