Add Giant World Map (#845)

## Description:
Adds giant world map. Uses same nations as former world map. Does not
include translations beyond English.
## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
- [x] I understand that submitting code with bugs that could have been
caught through manual testing blocks releases and new features for all
contributors

## Please put your Discord username so you can be contacted if a bug or
regression is found:

1brucben

---------

Co-authored-by: evanpelle <evanpelle@gmail.com>
This commit is contained in:
1brucben
2025-05-24 04:26:01 +02:00
committed by GitHub
parent 2c4d2334dd
commit 08216855f7
12 changed files with 583 additions and 0 deletions
+1
View File
@@ -6,6 +6,7 @@ import { getMapsImage } from "../utilities/Maps";
// Add map descriptions
export const MapDescription: Record<keyof typeof GameMapType, string> = {
World: "World",
WorldMapGiant: "Giant World Map",
Europe: "Europe",
EuropeClassic: "Europe Classic",
Mena: "MENA",
+3
View File
@@ -21,6 +21,7 @@ import northAmerica from "../../../resources/maps/NorthAmericaThumb.webp";
import oceania from "../../../resources/maps/OceaniaThumb.webp";
import pangaea from "../../../resources/maps/PangaeaThumb.webp";
import southAmerica from "../../../resources/maps/SouthAmericaThumb.webp";
import worldmapgiant from "../../../resources/maps/WorldMapGiantThumb.webp";
import world from "../../../resources/maps/WorldMapThumb.webp";
import { GameMapType } from "../../core/game/Game";
@@ -29,6 +30,8 @@ export function getMapsImage(map: GameMapType): string {
switch (map) {
case GameMapType.World:
return world;
case GameMapType.WorldMapGiant:
return worldmapgiant;
case GameMapType.Oceania:
return oceania;
case GameMapType.Europe:
+1
View File
@@ -61,6 +61,7 @@ const numPlayersConfig = {
[GameMapType.BlackSea]: [40, 50, 30],
[GameMapType.Pangaea]: [40, 20, 30],
[GameMapType.World]: [150, 80, 50],
[GameMapType.WorldMapGiant]: [150, 100, 60],
[GameMapType.KnownWorld]: [50, 40, 30],
[GameMapType.Halkidiki]: [50, 40, 30],
} as const satisfies Record<GameMapType, [number, number, number]>;
+2
View File
@@ -54,6 +54,7 @@ export const ColoredTeams: Record<string, Team> = {
export enum GameMapType {
World = "World",
WorldMapGiant = "Giant World Map",
Europe = "Europe",
EuropeClassic = "Europe Classic",
Mena = "Mena",
@@ -82,6 +83,7 @@ export enum GameMapType {
export const mapCategories: Record<string, GameMapType[]> = {
continental: [
GameMapType.World,
GameMapType.WorldMapGiant,
GameMapType.NorthAmerica,
GameMapType.SouthAmerica,
GameMapType.Europe,
+1
View File
@@ -24,6 +24,7 @@ interface NationMapModule {
// Mapping from GameMap enum values to file names
const MAP_FILE_NAMES: Record<GameMapType, string> = {
[GameMapType.World]: "WorldMap",
[GameMapType.WorldMapGiant]: "WorldMapGiant",
[GameMapType.Europe]: "Europe",
[GameMapType.Mena]: "Mena",
[GameMapType.NorthAmerica]: "NorthAmerica",
+1
View File
@@ -7,6 +7,7 @@ const maps = [
"Africa",
"Asia",
"WorldMap",
"WorldMapGiant",
"BlackSea",
"Europe",
"EuropeClassic",