mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 11:20:45 +00:00
Add Falkland Islands map (#681)
## Description: This PR adds the Falkland Islands map. It has 12 nations - most of the regions of the islands. All use the Falkland Island flag as they don't have their own. ## Please complete the following: - [ ] 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: <DISCORD USERNAME> Nikola123
This commit is contained in:
@@ -127,7 +127,8 @@
|
||||
"knownworld": "Known World",
|
||||
"faroeislands": "Faroe Islands",
|
||||
"deglaciatedantarctica": "Deglaciated Antarctica",
|
||||
"europeclassic": "Europe (classic)"
|
||||
"europeclassic": "Europe (classic)",
|
||||
"falklandislands": "Falkland Islands"
|
||||
},
|
||||
"map_categories": {
|
||||
"continental": "Continental",
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,79 @@
|
||||
{
|
||||
"name": "Falkland Islands",
|
||||
"width": 2100,
|
||||
"height": 1400,
|
||||
"nations": [
|
||||
{
|
||||
"coordinates": [484, 987],
|
||||
"name": "Albermarle",
|
||||
"strength": 2,
|
||||
"flag": "fk"
|
||||
},
|
||||
{
|
||||
"coordinates": [228, 804],
|
||||
"name": "Weddell",
|
||||
"strength": 1,
|
||||
"flag": "fk"
|
||||
},
|
||||
{
|
||||
"coordinates": [818, 873],
|
||||
"name": "Fox Bay",
|
||||
"strength": 1,
|
||||
"flag": "fk"
|
||||
},
|
||||
{
|
||||
"coordinates": [994, 541],
|
||||
"name": "East Falkland",
|
||||
"strength": 2,
|
||||
"flag": "fk"
|
||||
},
|
||||
{
|
||||
"coordinates": [633, 518],
|
||||
"name": "Saunders and Dunbar",
|
||||
"strength": 1,
|
||||
"flag": "fk"
|
||||
},
|
||||
{
|
||||
"coordinates": [1063, 1036],
|
||||
"name": "South Lefonia",
|
||||
"strength": 1,
|
||||
"flag": "fk"
|
||||
},
|
||||
{
|
||||
"coordinates": [1298, 860],
|
||||
"name": "North Lefonia",
|
||||
"strength": 2,
|
||||
"flag": "fk"
|
||||
},
|
||||
{
|
||||
"coordinates": [1587, 743],
|
||||
"name": "Wickham and Fitzroy",
|
||||
"strength": 1,
|
||||
"flag": "fk"
|
||||
},
|
||||
{
|
||||
"coordinates": [1831, 456],
|
||||
"name": "Berkeley",
|
||||
"strength": 1,
|
||||
"flag": "fk"
|
||||
},
|
||||
{
|
||||
"coordinates": [1984, 657],
|
||||
"name": "Stanley",
|
||||
"strength": 1,
|
||||
"flag": "fk"
|
||||
},
|
||||
{
|
||||
"coordinates": [1468, 398],
|
||||
"name": "Concordia",
|
||||
"strength": 2,
|
||||
"flag": "fk"
|
||||
},
|
||||
{
|
||||
"coordinates": [1381, 624],
|
||||
"name": "San Carlos",
|
||||
"strength": 1,
|
||||
"flag": "fk"
|
||||
}
|
||||
]
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.2 MiB |
File diff suppressed because one or more lines are too long
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
@@ -26,6 +26,7 @@ export const MapDescription: Record<keyof typeof GameMapType, string> = {
|
||||
KnownWorld: "Known World",
|
||||
FaroeIslands: "Faroe Islands",
|
||||
DeglaciatedAntarctica: "Deglaciated Antarctica",
|
||||
FalklandIslands: "Falkland Islands",
|
||||
};
|
||||
|
||||
@customElement("map-display")
|
||||
|
||||
@@ -7,6 +7,7 @@ import britannia from "../../../resources/maps/BritanniaThumb.webp";
|
||||
import deglaciatedAntarctica from "../../../resources/maps/DeglaciatedAntarcticaThumb.webp";
|
||||
import europeClassic from "../../../resources/maps/EuropeClassicThumb.webp";
|
||||
import europe from "../../../resources/maps/EuropeThumb.webp";
|
||||
import falklandislands from "../../../resources/maps/FalklandIslandsThumb.webp";
|
||||
import faroeislands from "../../../resources/maps/FaroeIslandsThumb.webp";
|
||||
import gatewayToTheAtlantic from "../../../resources/maps/GatewayToTheAtlanticThumb.webp";
|
||||
import iceland from "../../../resources/maps/IcelandThumb.webp";
|
||||
@@ -66,6 +67,8 @@ export function getMapsImage(map: GameMapType): string {
|
||||
return faroeislands;
|
||||
case GameMapType.DeglaciatedAntarctica:
|
||||
return deglaciatedAntarctica;
|
||||
case GameMapType.FalklandIslands:
|
||||
return falklandislands;
|
||||
default:
|
||||
return "";
|
||||
}
|
||||
|
||||
@@ -99,6 +99,7 @@ export abstract class DefaultServerConfig implements ServerConfig {
|
||||
GameMapType.Iceland,
|
||||
GameMapType.Britannia,
|
||||
GameMapType.Asia,
|
||||
GameMapType.FalklandIslands,
|
||||
].includes(map)
|
||||
) {
|
||||
return Math.random() < 0.3 ? 50 : 25;
|
||||
|
||||
@@ -72,8 +72,9 @@ export enum GameMapType {
|
||||
Japan = "Japan",
|
||||
BetweenTwoSeas = "Between Two Seas",
|
||||
KnownWorld = "Known World",
|
||||
FaroeIslands = "FaroeIslands",
|
||||
FaroeIslands = "Faroe Islands",
|
||||
DeglaciatedAntarctica = "Deglaciated Antarctica",
|
||||
FalklandIslands = "Falkland Islands",
|
||||
}
|
||||
|
||||
export const mapCategories: Record<string, GameMapType[]> = {
|
||||
@@ -97,6 +98,7 @@ export const mapCategories: Record<string, GameMapType[]> = {
|
||||
GameMapType.Mena,
|
||||
GameMapType.Australia,
|
||||
GameMapType.FaroeIslands,
|
||||
GameMapType.FalklandIslands,
|
||||
],
|
||||
fantasy: [
|
||||
GameMapType.Pangaea,
|
||||
|
||||
@@ -44,6 +44,7 @@ const MAP_FILE_NAMES: Record<GameMapType, string> = {
|
||||
[GameMapType.FaroeIslands]: "FaroeIslands",
|
||||
[GameMapType.DeglaciatedAntarctica]: "DeglaciatedAntarctica",
|
||||
[GameMapType.EuropeClassic]: "EuropeClassic",
|
||||
[GameMapType.FalklandIslands]: "FalklandIslands",
|
||||
};
|
||||
|
||||
class GameMapLoader {
|
||||
|
||||
@@ -25,6 +25,7 @@ const maps = [
|
||||
"KnownWorld",
|
||||
"FaroeIslands",
|
||||
"DeglaciatedAntarctica",
|
||||
"FalklandIslands",
|
||||
];
|
||||
|
||||
const removeSmall = true;
|
||||
|
||||
@@ -29,6 +29,7 @@ const frequency = {
|
||||
Japan: 1,
|
||||
BlackSea: 1,
|
||||
FaroeIslands: 1,
|
||||
FalklandIslands: 1,
|
||||
};
|
||||
|
||||
interface MapWithMode {
|
||||
|
||||
Reference in New Issue
Block a user