mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 09:10:42 +00:00
Add map of Taiwan Strait (#3878)
## Description: Map of the Taiwan and the Chinese Mainland. Team heavy map like Baikal and Hormuz. Terrain Source from OpenTopography, already credited <img width="1800" height="1511" alt="image" src="https://github.com/user-attachments/assets/45954469-8199-4882-9efe-899c5df87ce4" /> I also took the chance to standarize and sort alphabetically the map lists in main.go and MapPlaylist.ts. ## 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: tri.star 1011 NOTE: If the map gets added, please give contributor to crunchybbbbb_59469 for this map on Discord. Every file was made by him, his PR just had weird bugs that didnt allow the PR to be review automatically Original PR: https://github.com/openfrontio/OpenFrontIO/pull/3853 by crunchybbb2-hash
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 956 KiB |
@@ -0,0 +1,140 @@
|
||||
{
|
||||
"name": "Taiwan Strait",
|
||||
"nations": [
|
||||
{
|
||||
"coordinates": [900, 32],
|
||||
"name": "Fuzhou",
|
||||
"flag": "cn"
|
||||
},
|
||||
{
|
||||
"coordinates": [789, 282],
|
||||
"name": "Putian",
|
||||
"flag": "cn"
|
||||
},
|
||||
{
|
||||
"coordinates": [641, 447],
|
||||
"name": "Quanzhou",
|
||||
"flag": "cn"
|
||||
},
|
||||
{
|
||||
"coordinates": [430, 275],
|
||||
"name": "Chinese Military Base",
|
||||
"flag": "cn"
|
||||
},
|
||||
{
|
||||
"coordinates": [499, 590],
|
||||
"name": "Xiamen",
|
||||
"flag": "cn"
|
||||
},
|
||||
{
|
||||
"coordinates": [340, 550],
|
||||
"name": "Zhangzhou",
|
||||
"flag": "cn"
|
||||
},
|
||||
{
|
||||
"coordinates": [206, 449],
|
||||
"name": "Longyan",
|
||||
"flag": "cn"
|
||||
},
|
||||
{
|
||||
"coordinates": [107, 898],
|
||||
"name": "Shantou",
|
||||
"flag": "cn"
|
||||
},
|
||||
{
|
||||
"coordinates": [7, 836],
|
||||
"name": "Chaozhou",
|
||||
"flag": "cn"
|
||||
},
|
||||
{
|
||||
"coordinates": [21, 319],
|
||||
"name": "Giant Pandas",
|
||||
"flag": "cn"
|
||||
},
|
||||
{
|
||||
"coordinates": [593, 607],
|
||||
"name": "Kinmen Island",
|
||||
"flag": "tw"
|
||||
},
|
||||
{
|
||||
"coordinates": [975, 913],
|
||||
"name": "Penghu",
|
||||
"flag": "tw"
|
||||
},
|
||||
{
|
||||
"coordinates": [1252, 1244],
|
||||
"name": "Kaohsiung",
|
||||
"flag": "tw"
|
||||
},
|
||||
{
|
||||
"coordinates": [1210, 1079],
|
||||
"name": "Tainan",
|
||||
"flag": "tw"
|
||||
},
|
||||
{
|
||||
"coordinates": [1491, 1152],
|
||||
"name": "Taitung",
|
||||
"flag": "tw"
|
||||
},
|
||||
{
|
||||
"coordinates": [1643, 702],
|
||||
"name": "Hualien",
|
||||
"flag": "tw"
|
||||
},
|
||||
{
|
||||
"coordinates": [1249, 911],
|
||||
"name": "Chiayi",
|
||||
"flag": "tw"
|
||||
},
|
||||
{
|
||||
"coordinates": [1272, 697],
|
||||
"name": "Taichung City",
|
||||
"flag": "tw"
|
||||
},
|
||||
{
|
||||
"coordinates": [1752, 284],
|
||||
"name": "Keelung",
|
||||
"flag": "tw"
|
||||
},
|
||||
{
|
||||
"coordinates": [1655, 255],
|
||||
"name": "Taipei",
|
||||
"flag": "tw"
|
||||
},
|
||||
{
|
||||
"coordinates": [1542, 290],
|
||||
"name": "Taoyuan",
|
||||
"flag": "tw"
|
||||
},
|
||||
{
|
||||
"coordinates": [1464, 353],
|
||||
"name": "Hsinchu",
|
||||
"flag": "tw"
|
||||
},
|
||||
{
|
||||
"coordinates": [1351, 473],
|
||||
"name": "Miaoli",
|
||||
"flag": "tw"
|
||||
},
|
||||
{
|
||||
"coordinates": [1629, 1433],
|
||||
"name": "Lanyu",
|
||||
"flag": "tw"
|
||||
},
|
||||
{
|
||||
"coordinates": [41, 602],
|
||||
"name": "Meizhou",
|
||||
"flag": "cn"
|
||||
},
|
||||
{
|
||||
"coordinates": [619, 89],
|
||||
"name": "Sanming",
|
||||
"flag": "cn"
|
||||
},
|
||||
{
|
||||
"coordinates": [225, 84],
|
||||
"name": "Tea Plantations",
|
||||
"flag": "cn"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -97,6 +97,7 @@ var maps = []struct {
|
||||
{Name: "antarctica"},
|
||||
{Name: "archipelagosea"},
|
||||
{Name: "bajacalifornia"},
|
||||
{Name: "taiwanstrait"},
|
||||
{Name: "big_plains", IsTest: true},
|
||||
{Name: "half_land_half_ocean", IsTest: true},
|
||||
{Name: "ocean_and_land", IsTest: true},
|
||||
|
||||
@@ -490,7 +490,8 @@
|
||||
"beringsea": "Bering Sea",
|
||||
"antarctica": "Antarctica",
|
||||
"archipelagosea": "Archipelago Sea",
|
||||
"bajacalifornia": "Baja California"
|
||||
"bajacalifornia": "Baja California",
|
||||
"taiwanstrait": "Taiwan Strait"
|
||||
},
|
||||
"map_categories": {
|
||||
"featured": "Featured",
|
||||
|
||||
@@ -0,0 +1,155 @@
|
||||
{
|
||||
"map": {
|
||||
"height": 1508,
|
||||
"num_land_tiles": 1107518,
|
||||
"width": 1800
|
||||
},
|
||||
"map16x": {
|
||||
"height": 377,
|
||||
"num_land_tiles": 67799,
|
||||
"width": 450
|
||||
},
|
||||
"map4x": {
|
||||
"height": 754,
|
||||
"num_land_tiles": 274583,
|
||||
"width": 900
|
||||
},
|
||||
"name": "Taiwan Strait",
|
||||
"nations": [
|
||||
{
|
||||
"coordinates": [900, 32],
|
||||
"flag": "cn",
|
||||
"name": "Fuzhou"
|
||||
},
|
||||
{
|
||||
"coordinates": [789, 282],
|
||||
"flag": "cn",
|
||||
"name": "Putian"
|
||||
},
|
||||
{
|
||||
"coordinates": [641, 447],
|
||||
"flag": "cn",
|
||||
"name": "Quanzhou"
|
||||
},
|
||||
{
|
||||
"coordinates": [430, 275],
|
||||
"flag": "cn",
|
||||
"name": "Chinese Military Base"
|
||||
},
|
||||
{
|
||||
"coordinates": [499, 590],
|
||||
"flag": "cn",
|
||||
"name": "Xiamen"
|
||||
},
|
||||
{
|
||||
"coordinates": [340, 550],
|
||||
"flag": "cn",
|
||||
"name": "Zhangzhou"
|
||||
},
|
||||
{
|
||||
"coordinates": [206, 449],
|
||||
"flag": "cn",
|
||||
"name": "Longyan"
|
||||
},
|
||||
{
|
||||
"coordinates": [107, 898],
|
||||
"flag": "cn",
|
||||
"name": "Shantou"
|
||||
},
|
||||
{
|
||||
"coordinates": [7, 836],
|
||||
"flag": "cn",
|
||||
"name": "Chaozhou"
|
||||
},
|
||||
{
|
||||
"coordinates": [21, 319],
|
||||
"flag": "cn",
|
||||
"name": "Giant Pandas"
|
||||
},
|
||||
{
|
||||
"coordinates": [593, 607],
|
||||
"flag": "tw",
|
||||
"name": "Kinmen Island"
|
||||
},
|
||||
{
|
||||
"coordinates": [975, 913],
|
||||
"flag": "tw",
|
||||
"name": "Penghu"
|
||||
},
|
||||
{
|
||||
"coordinates": [1252, 1244],
|
||||
"flag": "tw",
|
||||
"name": "Kaohsiung"
|
||||
},
|
||||
{
|
||||
"coordinates": [1210, 1079],
|
||||
"flag": "tw",
|
||||
"name": "Tainan"
|
||||
},
|
||||
{
|
||||
"coordinates": [1491, 1152],
|
||||
"flag": "tw",
|
||||
"name": "Taitung"
|
||||
},
|
||||
{
|
||||
"coordinates": [1643, 702],
|
||||
"flag": "tw",
|
||||
"name": "Hualien"
|
||||
},
|
||||
{
|
||||
"coordinates": [1249, 911],
|
||||
"flag": "tw",
|
||||
"name": "Chiayi"
|
||||
},
|
||||
{
|
||||
"coordinates": [1272, 697],
|
||||
"flag": "tw",
|
||||
"name": "Taichung City"
|
||||
},
|
||||
{
|
||||
"coordinates": [1752, 284],
|
||||
"flag": "tw",
|
||||
"name": "Keelung"
|
||||
},
|
||||
{
|
||||
"coordinates": [1655, 255],
|
||||
"flag": "tw",
|
||||
"name": "Taipei"
|
||||
},
|
||||
{
|
||||
"coordinates": [1542, 290],
|
||||
"flag": "tw",
|
||||
"name": "Taoyuan"
|
||||
},
|
||||
{
|
||||
"coordinates": [1464, 353],
|
||||
"flag": "tw",
|
||||
"name": "Hsinchu"
|
||||
},
|
||||
{
|
||||
"coordinates": [1351, 473],
|
||||
"flag": "tw",
|
||||
"name": "Miaoli"
|
||||
},
|
||||
{
|
||||
"coordinates": [1629, 1433],
|
||||
"flag": "tw",
|
||||
"name": "Lanyu"
|
||||
},
|
||||
{
|
||||
"coordinates": [41, 602],
|
||||
"flag": "cn",
|
||||
"name": "Meizhou"
|
||||
},
|
||||
{
|
||||
"coordinates": [619, 89],
|
||||
"flag": "cn",
|
||||
"name": "Sanming"
|
||||
},
|
||||
{
|
||||
"coordinates": [225, 84],
|
||||
"flag": "cn",
|
||||
"name": "Tea Plantations"
|
||||
}
|
||||
]
|
||||
}
|
||||
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: 6.5 KiB |
@@ -170,6 +170,7 @@ export enum GameMapType {
|
||||
ArchipelagoSea = "ArchipelagoSea",
|
||||
BajaCalifornia = "Baja California",
|
||||
MiddleEast = "Middle East",
|
||||
TaiwanStrait = "Taiwan Strait",
|
||||
}
|
||||
|
||||
export type GameMapName = keyof typeof GameMapType;
|
||||
@@ -232,6 +233,7 @@ export const mapCategories: Record<string, GameMapType[]> = {
|
||||
GameMapType.ArchipelagoSea,
|
||||
GameMapType.BajaCalifornia,
|
||||
GameMapType.MiddleEast,
|
||||
GameMapType.TaiwanStrait,
|
||||
],
|
||||
fantasy: [
|
||||
GameMapType.Pangaea,
|
||||
|
||||
@@ -97,6 +97,7 @@ const frequency: Partial<Record<GameMapName, number>> = {
|
||||
ArchipelagoSea: 3,
|
||||
BajaCalifornia: 4,
|
||||
MiddleEast: 8,
|
||||
TaiwanStrait: 5,
|
||||
};
|
||||
|
||||
const TEAM_WEIGHTS: { config: TeamCountConfig; weight: number }[] = [
|
||||
|
||||
Reference in New Issue
Block a user