Add Japan map (#2106)

## Description:

This PR adds a new Japan map.

<img width="975" height="967" alt="スクリーンショット 2025-09-28 18 06 11"
src="https://github.com/user-attachments/assets/5ef06c1a-f020-4109-a5df-3cba7a9a074f"
/>

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I process any text displayed to the user through translateText()
and I've added it to the en.json file
- [x] I have added relevant tests to the test directory
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced

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

aotumuri
This commit is contained in:
Aotumuri
2025-09-29 09:50:22 +09:00
committed by GitHub
parent f744788793
commit 623d6557e3
13 changed files with 181 additions and 0 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 964 KiB

+77
View File
@@ -0,0 +1,77 @@
{
"name": "japan",
"nations": [
{
"coordinates": [1895, 288],
"name": "Hokkaido",
"strength": 2,
"flag": "jp"
},
{
"coordinates": [1647, 897],
"name": "Tohoku",
"strength": 2,
"flag": "jp"
},
{
"coordinates": [1613, 1133],
"name": "Kanto",
"strength": 2,
"flag": "jp"
},
{
"coordinates": [1391, 1194],
"name": "Chubu",
"strength": 2,
"flag": "jp"
},
{
"coordinates": [1191, 1370],
"name": "Kansai",
"strength": 2,
"flag": "jp"
},
{
"coordinates": [932, 1308],
"name": "Chugoku",
"strength": 2,
"flag": "jp"
},
{
"coordinates": [949, 1454],
"name": "Shikoku",
"strength": 2,
"flag": "jp"
},
{
"coordinates": [709, 1570],
"name": "Kyushu",
"strength": 2,
"flag": "jp"
},
{
"coordinates": [397, 2283],
"name": "Okinawa",
"strength": 1,
"flag": "jp"
},
{
"coordinates": [1493, 1246],
"name": "Mount Fuji",
"strength": 1,
"flag": "jp"
},
{
"coordinates": [1565, 1178],
"name": "Tokyo",
"strength": 3,
"flag": "jp"
},
{
"coordinates": [1158, 1290],
"name": "Kyoto",
"strength": 3,
"flag": "jp"
}
]
}
+1
View File
@@ -38,6 +38,7 @@ var maps = []struct {
{Name: "baikal"},
{Name: "halkidiki"},
{Name: "italia"},
{Name: "japan"},
{Name: "straitofgibraltar"},
{Name: "pluto"},
{Name: "big_plains", IsTest: true},
+1
View File
@@ -176,6 +176,7 @@
"halkidiki": "Halkidiki",
"straitofgibraltar": "Strait of Gibraltar",
"italia": "Italia",
"japan": "Japan",
"yenisei": "Yenisei",
"pluto": "Pluto",
"montreal": "Montreal"
+94
View File
@@ -0,0 +1,94 @@
{
"height": 2500,
"map": {
"height": 2500,
"num_land_tiles": 488183,
"width": 2500
},
"map16x": {
"height": 625,
"num_land_tiles": 28632,
"width": 625
},
"map4x": {
"height": 1250,
"num_land_tiles": 119450,
"width": 1250
},
"name": "japan",
"nations": [
{
"coordinates": [1895, 288],
"flag": "jp",
"name": "Hokkaido",
"strength": 2
},
{
"coordinates": [1647, 897],
"flag": "jp",
"name": "Tohoku",
"strength": 2
},
{
"coordinates": [1613, 1133],
"flag": "jp",
"name": "Kanto",
"strength": 2
},
{
"coordinates": [1391, 1194],
"flag": "jp",
"name": "Chubu",
"strength": 2
},
{
"coordinates": [1191, 1370],
"flag": "jp",
"name": "Kansai",
"strength": 2
},
{
"coordinates": [932, 1308],
"flag": "jp",
"name": "Chugoku",
"strength": 2
},
{
"coordinates": [949, 1454],
"flag": "jp",
"name": "Shikoku",
"strength": 2
},
{
"coordinates": [709, 1570],
"flag": "jp",
"name": "Kyushu",
"strength": 2
},
{
"coordinates": [397, 2283],
"flag": "jp",
"name": "Okinawa",
"strength": 1
},
{
"coordinates": [1493, 1246],
"flag": "jp",
"name": "Mount Fuji",
"strength": 1
},
{
"coordinates": [1565, 1178],
"flag": "jp",
"name": "Tokyo",
"strength": 3
},
{
"coordinates": [1158, 1290],
"flag": "jp",
"name": "Kyoto",
"strength": 3
}
],
"width": 2500
}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

+1
View File
@@ -32,6 +32,7 @@ export const MapDescription: Record<keyof typeof GameMapType, string> = {
Halkidiki: "Halkidiki",
StraitOfGibraltar: "Strait of Gibraltar",
Italia: "Italia",
Japan: "Japan",
Yenisei: "Yenisei",
Pluto: "Pluto",
Montreal: "Montreal",
+1
View File
@@ -63,6 +63,7 @@ const numPlayersConfig = {
[GameMapType.Halkidiki]: [100, 50, 40],
[GameMapType.Iceland]: [50, 40, 30],
[GameMapType.Italia]: [50, 30, 20],
[GameMapType.Japan]: [20, 15, 10],
[GameMapType.Mars]: [70, 40, 30],
[GameMapType.Mena]: [70, 50, 40],
[GameMapType.Montreal]: [60, 40, 30],
+2
View File
@@ -82,6 +82,7 @@ export enum GameMapType {
Halkidiki = "Halkidiki",
StraitOfGibraltar = "Strait of Gibraltar",
Italia = "Italia",
Japan = "Japan",
Yenisei = "Yenisei",
Pluto = "Pluto",
Montreal = "Montreal",
@@ -116,6 +117,7 @@ export const mapCategories: Record<string, GameMapType[]> = {
GameMapType.Halkidiki,
GameMapType.StraitOfGibraltar,
GameMapType.Italia,
GameMapType.Japan,
GameMapType.Yenisei,
GameMapType.Montreal,
],
+1
View File
@@ -38,6 +38,7 @@ const frequency: Partial<Record<GameMapName, number>> = {
Halkidiki: 4,
Iceland: 4,
Italia: 6,
Japan: 6,
Mars: 3,
Mena: 6,
Montreal: 6,