mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-16 08:26:22 +00:00
Add the Pluto map (#1442)
## Description: Redoing this PR because the previous one was just a mess. ~~Now everything is in 1 commit.~~ not anymore I have added the map of Pluto, based on the discord suggestion that has 41 upvotes. <img width="2100" height="1300" alt="pluto_final_clean" src="https://github.com/user-attachments/assets/9eaa44f9-c18e-48ca-89e4-ac59273859f7" /> The map looks like this ^ The map doesn't cover all of Pluto, because we simply don't have the data about the other side. Instead this map covers most of the mapped area which has high quality height data. <img width="2438" height="1219" alt="image" src="https://github.com/user-attachments/assets/c5adfd52-0e92-4cb9-b97b-afd7df822588" /> ## 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 - [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: aceralex
This commit is contained in:
@@ -162,7 +162,8 @@
|
||||
"baikal": "Baikal",
|
||||
"halkidiki": "Halkidiki",
|
||||
"straitofgibraltar": "Strait of Gibraltar",
|
||||
"italia": "Italia"
|
||||
"italia": "Italia",
|
||||
"pluto": "Pluto"
|
||||
},
|
||||
"map_categories": {
|
||||
"continental": "Continental",
|
||||
|
||||
@@ -0,0 +1,249 @@
|
||||
{
|
||||
"map": {
|
||||
"height": 1300,
|
||||
"num_land_tiles": 2010570,
|
||||
"width": 2100
|
||||
},
|
||||
"mini_map": {
|
||||
"height": 650,
|
||||
"num_land_tiles": 496398,
|
||||
"width": 1050
|
||||
},
|
||||
"name": "Pluto",
|
||||
"nations": [
|
||||
{
|
||||
"coordinates": [178, 642],
|
||||
"name": "United States Colony",
|
||||
"strength": 3,
|
||||
"flag": "us"
|
||||
},
|
||||
{
|
||||
"coordinates": [285, 970],
|
||||
"name": "Russian Colony",
|
||||
"strength": 2,
|
||||
"flag": "ru"
|
||||
},
|
||||
{
|
||||
"coordinates": [1700, 400],
|
||||
"name": "European Space Agency",
|
||||
"strength": 3,
|
||||
"flag": ""
|
||||
},
|
||||
{
|
||||
"coordinates": [1190, 1210],
|
||||
"name": "United Kingdom Colony",
|
||||
"strength": 2,
|
||||
"flag": "gb"
|
||||
},
|
||||
{
|
||||
"coordinates": [1700, 1000],
|
||||
"name": "Chinese Colony",
|
||||
"strength": 3,
|
||||
"flag": "cn"
|
||||
},
|
||||
{
|
||||
"coordinates": [1200, 185],
|
||||
"name": "Japanese Colony",
|
||||
"strength": 3,
|
||||
"flag": "jp"
|
||||
},
|
||||
{
|
||||
"coordinates": [830, 1000],
|
||||
"name": "Indian Colony",
|
||||
"strength": 2,
|
||||
"flag": "in"
|
||||
},
|
||||
{
|
||||
"coordinates": [75, 300],
|
||||
"name": "African Space Agency",
|
||||
"strength": 2,
|
||||
"flag": ""
|
||||
},
|
||||
{
|
||||
"coordinates": [750, 560],
|
||||
"name": "Australian Colony",
|
||||
"strength": 1,
|
||||
"flag": "au"
|
||||
},
|
||||
{
|
||||
"coordinates": [1075, 325],
|
||||
"name": "North Korean Colony",
|
||||
"strength": 1,
|
||||
"flag": ""
|
||||
},
|
||||
{
|
||||
"coordinates": [1980, 580],
|
||||
"name": "Taiwanese Colony",
|
||||
"strength": 2,
|
||||
"flag": "tw"
|
||||
},
|
||||
{
|
||||
"coordinates": [1920, 100],
|
||||
"name": "United Nations Base",
|
||||
"strength": 2,
|
||||
"flag": ""
|
||||
},
|
||||
{
|
||||
"coordinates": [25, 1245],
|
||||
"name": "Polish Colony",
|
||||
"strength": 1,
|
||||
"flag": "pl"
|
||||
},
|
||||
{
|
||||
"coordinates": [150, 1230],
|
||||
"name": "Ukrainian Colony",
|
||||
"strength": 1,
|
||||
"flag": "ua"
|
||||
},
|
||||
{
|
||||
"coordinates": [360, 1250],
|
||||
"name": "German Colony",
|
||||
"strength": 1,
|
||||
"flag": "de"
|
||||
},
|
||||
{
|
||||
"coordinates": [500, 1190],
|
||||
"name": "Mongolian Colony",
|
||||
"strength": 1,
|
||||
"flag": "mn"
|
||||
},
|
||||
{
|
||||
"coordinates": [600, 1111],
|
||||
"name": "South Korean Colony",
|
||||
"strength": 1,
|
||||
"flag": "kr"
|
||||
},
|
||||
{
|
||||
"coordinates": [733, 1230],
|
||||
"name": "New Zealand Colony",
|
||||
"strength": 1,
|
||||
"flag": "nz"
|
||||
},
|
||||
{
|
||||
"coordinates": [900, 1220],
|
||||
"name": "Finnish Colony",
|
||||
"strength": 1,
|
||||
"flag": "fi"
|
||||
},
|
||||
{
|
||||
"coordinates": [980, 920],
|
||||
"name": "Netherlands Colony",
|
||||
"strength": 1,
|
||||
"flag": "nl"
|
||||
},
|
||||
{
|
||||
"coordinates": [1000, 1090],
|
||||
"name": "Romanian Colony",
|
||||
"strength": 1,
|
||||
"flag": "ro"
|
||||
},
|
||||
{
|
||||
"coordinates": [835, 1005],
|
||||
"name": "Turkish Colony",
|
||||
"strength": 1,
|
||||
"flag": "tr"
|
||||
},
|
||||
{
|
||||
"coordinates": [1170, 1080],
|
||||
"name": "Irish Colony",
|
||||
"strength": 1,
|
||||
"flag": "ie"
|
||||
},
|
||||
{
|
||||
"coordinates": [696, 705],
|
||||
"name": "Pakistani Colony",
|
||||
"strength": 1,
|
||||
"flag": "pk"
|
||||
},
|
||||
{
|
||||
"coordinates": [1466, 1233],
|
||||
"name": "Chilean Colony",
|
||||
"strength": 1,
|
||||
"flag": "cl"
|
||||
},
|
||||
{
|
||||
"coordinates": [55, 134],
|
||||
"name": "Argentinian Colony",
|
||||
"strength": 1,
|
||||
"flag": "ar"
|
||||
},
|
||||
{
|
||||
"coordinates": [1888, 1145],
|
||||
"name": "Brazilian Colony",
|
||||
"strength": 1,
|
||||
"flag": "br"
|
||||
},
|
||||
{
|
||||
"coordinates": [1914, 375],
|
||||
"name": "French Colony",
|
||||
"strength": 1,
|
||||
"flag": "fr"
|
||||
},
|
||||
{
|
||||
"coordinates": [1743, 16],
|
||||
"name": "Spanish Colony",
|
||||
"strength": 1,
|
||||
"flag": "es"
|
||||
},
|
||||
{
|
||||
"coordinates": [1800, 751],
|
||||
"name": "Mexican Colony",
|
||||
"strength": 1,
|
||||
"flag": "mx"
|
||||
},
|
||||
{
|
||||
"coordinates": [1672, 302],
|
||||
"name": "Canadian Colony",
|
||||
"strength": 1,
|
||||
"flag": "ca"
|
||||
},
|
||||
{
|
||||
"coordinates": [1520, 1134],
|
||||
"name": "Italian Colony",
|
||||
"strength": 1,
|
||||
"flag": "it"
|
||||
},
|
||||
{
|
||||
"coordinates": [2088, 1143],
|
||||
"name": "Swiss Colony",
|
||||
"strength": 1,
|
||||
"flag": "ch"
|
||||
},
|
||||
{
|
||||
"coordinates": [965, 67],
|
||||
"name": "Indonesian Colony",
|
||||
"strength": 1,
|
||||
"flag": "id"
|
||||
},
|
||||
{
|
||||
"coordinates": [396, 364],
|
||||
"name": "Madagascar Colony",
|
||||
"strength": 1,
|
||||
"flag": "mg"
|
||||
},
|
||||
{
|
||||
"coordinates": [135, 881],
|
||||
"name": "Saudi Arabian Colony",
|
||||
"strength": 1,
|
||||
"flag": "sa"
|
||||
},
|
||||
{
|
||||
"coordinates": [560, 20],
|
||||
"name": "South African Colony",
|
||||
"strength": 1,
|
||||
"flag": "za"
|
||||
},
|
||||
{
|
||||
"coordinates": [163, 175],
|
||||
"name": "Iceland Colony",
|
||||
"strength": 1,
|
||||
"flag": "is"
|
||||
},
|
||||
{
|
||||
"coordinates": [1983, 575],
|
||||
"name": "Free Pluto State",
|
||||
"strength": 3,
|
||||
"flag": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
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: 17 KiB |
@@ -32,6 +32,7 @@ export const MapDescription: Record<keyof typeof GameMapType, string> = {
|
||||
Halkidiki: "Halkidiki",
|
||||
StraitOfGibraltar: "Strait of Gibraltar",
|
||||
Italia: "Italia",
|
||||
Pluto: "Pluto",
|
||||
};
|
||||
|
||||
@customElement("map-display")
|
||||
|
||||
@@ -68,6 +68,7 @@ const numPlayersConfig = {
|
||||
[GameMapType.Halkidiki]: [50, 40, 30],
|
||||
[GameMapType.StraitOfGibraltar]: [50, 40, 30],
|
||||
[GameMapType.Italia]: [50, 40, 30],
|
||||
[GameMapType.Pluto]: [120, 80, 50],
|
||||
} as const satisfies Record<GameMapType, [number, number, number]>;
|
||||
|
||||
export abstract class DefaultServerConfig implements ServerConfig {
|
||||
|
||||
@@ -81,6 +81,7 @@ export enum GameMapType {
|
||||
Halkidiki = "Halkidiki",
|
||||
StraitOfGibraltar = "Strait of Gibraltar",
|
||||
Italia = "Italia",
|
||||
Pluto = "Pluto",
|
||||
}
|
||||
|
||||
export type GameMapName = keyof typeof GameMapType;
|
||||
@@ -115,6 +116,7 @@ export const mapCategories: Record<string, GameMapType[]> = {
|
||||
],
|
||||
fantasy: [
|
||||
GameMapType.Pangaea,
|
||||
GameMapType.Pluto,
|
||||
GameMapType.Mars,
|
||||
GameMapType.DeglaciatedAntarctica,
|
||||
],
|
||||
|
||||
@@ -45,6 +45,7 @@ const frequency: Partial<Record<GameMapName, number>> = {
|
||||
Halkidiki: 1,
|
||||
StraitOfGibraltar: 1,
|
||||
Italia: 1,
|
||||
Pluto: 1,
|
||||
};
|
||||
|
||||
interface MapWithMode {
|
||||
|
||||
Reference in New Issue
Block a user