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:
Duwibi
2025-05-09 00:34:13 +03:00
committed by GitHub
parent c58ac10835
commit ce7a7c555d
13 changed files with 94 additions and 2 deletions
+1
View File
@@ -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")
+3
View File
@@ -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 "";
}
+1
View File
@@ -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;
+3 -1
View File
@@ -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,
+1
View File
@@ -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 {
+1
View File
@@ -25,6 +25,7 @@ const maps = [
"KnownWorld",
"FaroeIslands",
"DeglaciatedAntarctica",
"FalklandIslands",
];
const removeSmall = true;
+1
View File
@@ -29,6 +29,7 @@ const frequency = {
Japan: 1,
BlackSea: 1,
FaroeIslands: 1,
FalklandIslands: 1,
};
interface MapWithMode {