mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 08:11:54 +00:00
add Baja California map 🏜️ (#3759)
## Description: Adds map of the Baja California peninsula in Mexico. Majority of this map is brown terrain to simulate the (Sonora) desert Mexican and American states as NPCs. The peninsula while having little landmass is balanced by the fact it will be very easy to pirate from it <img width="503" height="583" alt="Captura de pantalla 2026-04-18 151337" src="https://github.com/user-attachments/assets/b1acd93a-fbe4-4d17-95b6-5f4c86ec872f" /> Relief data from OpenTopography, already credited ## 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.star1011
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 362 KiB |
@@ -0,0 +1,45 @@
|
|||||||
|
{
|
||||||
|
"name": "bajacalifornia",
|
||||||
|
"nations": [
|
||||||
|
{
|
||||||
|
"coordinates": [513, 44],
|
||||||
|
"name": "California",
|
||||||
|
"flag": "California"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"coordinates": [791, 699],
|
||||||
|
"name": "Baja California",
|
||||||
|
"flag": "mx"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"coordinates": [1312, 1426],
|
||||||
|
"name": "Baja California Sur",
|
||||||
|
"flag": "mx"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"coordinates": [1364, 679],
|
||||||
|
"name": "Sonora",
|
||||||
|
"flag": "mx"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"coordinates": [1767, 1243],
|
||||||
|
"name": "Sinaloa",
|
||||||
|
"flag": "mx"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"coordinates": [1733, 578],
|
||||||
|
"name": "Chihuahua",
|
||||||
|
"flag": "mx"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"coordinates": [969, 62],
|
||||||
|
"name": "Arizona",
|
||||||
|
"flag": "Arizona"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"coordinates": [1534, 60],
|
||||||
|
"name": "New Mexico",
|
||||||
|
"flag": "New_Mexico"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -94,6 +94,7 @@ var maps = []struct {
|
|||||||
{Name: "beringsea"},
|
{Name: "beringsea"},
|
||||||
{Name: "antarctica"},
|
{Name: "antarctica"},
|
||||||
{Name: "archipelagosea"},
|
{Name: "archipelagosea"},
|
||||||
|
{Name: "bajacalifornia"},
|
||||||
{Name: "big_plains", IsTest: true},
|
{Name: "big_plains", IsTest: true},
|
||||||
{Name: "half_land_half_ocean", IsTest: true},
|
{Name: "half_land_half_ocean", IsTest: true},
|
||||||
{Name: "ocean_and_land", IsTest: true},
|
{Name: "ocean_and_land", IsTest: true},
|
||||||
|
|||||||
@@ -367,7 +367,8 @@
|
|||||||
"caucasus": "Caucasus",
|
"caucasus": "Caucasus",
|
||||||
"beringsea": "Bering Sea",
|
"beringsea": "Bering Sea",
|
||||||
"antarctica": "Antarctica",
|
"antarctica": "Antarctica",
|
||||||
"archipelagosea": "Archipelago Sea"
|
"archipelagosea": "Archipelago Sea",
|
||||||
|
"bajacalifornia": "Baja California"
|
||||||
},
|
},
|
||||||
"map_categories": {
|
"map_categories": {
|
||||||
"featured": "Featured",
|
"featured": "Featured",
|
||||||
|
|||||||
@@ -0,0 +1,60 @@
|
|||||||
|
{
|
||||||
|
"map": {
|
||||||
|
"height": 2120,
|
||||||
|
"num_land_tiles": 1345295,
|
||||||
|
"width": 1800
|
||||||
|
},
|
||||||
|
"map16x": {
|
||||||
|
"height": 530,
|
||||||
|
"num_land_tiles": 80847,
|
||||||
|
"width": 450
|
||||||
|
},
|
||||||
|
"map4x": {
|
||||||
|
"height": 1060,
|
||||||
|
"num_land_tiles": 331582,
|
||||||
|
"width": 900
|
||||||
|
},
|
||||||
|
"name": "bajacalifornia",
|
||||||
|
"nations": [
|
||||||
|
{
|
||||||
|
"coordinates": [513, 44],
|
||||||
|
"flag": "California",
|
||||||
|
"name": "California"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"coordinates": [791, 699],
|
||||||
|
"flag": "mx",
|
||||||
|
"name": "Baja California"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"coordinates": [1312, 1426],
|
||||||
|
"flag": "mx",
|
||||||
|
"name": "Baja California Sur"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"coordinates": [1364, 679],
|
||||||
|
"flag": "mx",
|
||||||
|
"name": "Sonora"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"coordinates": [1767, 1243],
|
||||||
|
"flag": "mx",
|
||||||
|
"name": "Sinaloa"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"coordinates": [1733, 578],
|
||||||
|
"flag": "mx",
|
||||||
|
"name": "Chihuahua"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"coordinates": [969, 62],
|
||||||
|
"flag": "Arizona",
|
||||||
|
"name": "Arizona"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"coordinates": [1534, 60],
|
||||||
|
"flag": "New_Mexico",
|
||||||
|
"name": "New Mexico"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
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: 8.3 KiB |
@@ -154,6 +154,7 @@ export enum GameMapType {
|
|||||||
BeringSea = "Bering Sea",
|
BeringSea = "Bering Sea",
|
||||||
Antarctica = "Antarctica",
|
Antarctica = "Antarctica",
|
||||||
ArchipelagoSea = "ArchipelagoSea",
|
ArchipelagoSea = "ArchipelagoSea",
|
||||||
|
BajaCalifornia = "Baja California",
|
||||||
}
|
}
|
||||||
|
|
||||||
export type GameMapName = keyof typeof GameMapType;
|
export type GameMapName = keyof typeof GameMapType;
|
||||||
@@ -213,6 +214,7 @@ export const mapCategories: Record<string, GameMapType[]> = {
|
|||||||
GameMapType.Caucasus,
|
GameMapType.Caucasus,
|
||||||
GameMapType.BeringSea,
|
GameMapType.BeringSea,
|
||||||
GameMapType.ArchipelagoSea,
|
GameMapType.ArchipelagoSea,
|
||||||
|
GameMapType.BajaCalifornia,
|
||||||
],
|
],
|
||||||
fantasy: [
|
fantasy: [
|
||||||
GameMapType.Pangaea,
|
GameMapType.Pangaea,
|
||||||
|
|||||||
@@ -93,6 +93,7 @@ const frequency: Partial<Record<GameMapName, number>> = {
|
|||||||
BeringSea: 5,
|
BeringSea: 5,
|
||||||
Antarctica: 1,
|
Antarctica: 1,
|
||||||
ArchipelagoSea: 3,
|
ArchipelagoSea: 3,
|
||||||
|
BajaCalifornia: 4,
|
||||||
};
|
};
|
||||||
|
|
||||||
const TEAM_WEIGHTS: { config: TeamCountConfig; weight: number }[] = [
|
const TEAM_WEIGHTS: { config: TeamCountConfig; weight: number }[] = [
|
||||||
|
|||||||
Reference in New Issue
Block a user