Add Antarctica Map (#544)

## Description:
This PR adds the new Deglaciated Antarctica map(suggested by Backn). It
has 9 nations - most of the country territorial claims on the continent
and the "Penguin Empire".

fixes #545 

## Please complete the following:

- [x] 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:

Nikola123

---------

Co-authored-by: Loymdayddaud <145969603+TheGiraffe3@users.noreply.github.com>
This commit is contained in:
Duwibi
2025-04-28 22:58:10 +03:00
committed by GitHub
parent 09e95ebdf9
commit ccba7a5617
14 changed files with 82 additions and 1 deletions
File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 47 KiB

+1
View File
@@ -122,6 +122,7 @@
"betweentwoseas": "Between Two Seas",
"knownworld": "Known World",
"faroeislands": "Faroe Islands",
"deglaciatedantarctica": "Deglaciated Antarctica",
"europeclassic": "Europe (classic)"
},
"map_categories": {
File diff suppressed because one or more lines are too long
+61
View File
@@ -0,0 +1,61 @@
{
"name": "Deglaciated Antarctica",
"width": 2300,
"height": 1840,
"nations": [
{
"coordinates": [1545, 785],
"name": "Penguin Empire",
"strength": 2,
"flag": "an_pe"
},
{
"coordinates": [1365, 155],
"name": "Norwegian Claim",
"strength": 2,
"flag": "no"
},
{
"coordinates": [1810, 450],
"name": "Upper Australian Claim",
"strength": 2,
"flag": "au"
},
{
"coordinates": [1980, 980],
"name": "Lower Australian Claim",
"strength": 1,
"flag": "au"
},
{
"coordinates": [495, 605],
"name": "Argentinian Claim",
"strength": 2,
"flag": "ar"
},
{
"coordinates": [1150, 715],
"name": "United Kingdom Claim",
"strength": 2,
"flag": "gb"
},
{
"coordinates": [1060, 935],
"name": "Chilean Claim",
"strength": 2,
"flag": "cl"
},
{
"coordinates": [1365, 1400],
"name": "New Zealand Claim",
"strength": 2,
"flag": "nz"
},
{
"coordinates": [1590, 1120],
"name": "French Claim",
"strength": 2,
"flag": "fr"
}
]
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

File diff suppressed because one or more lines are too long
Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

+1
View File
@@ -25,6 +25,7 @@ export const MapDescription: Record<keyof typeof GameMapType, string> = {
BetweenTwoSeas: "Between Two Seas",
KnownWorld: "Known World",
FaroeIslands: "Faroe Islands",
DeglaciatedAntarctica: "Deglaciated Antarctica",
};
@customElement("map-display")
+3
View File
@@ -4,6 +4,7 @@ import australia from "../../../resources/maps/AustraliaThumb.webp";
import betweenTwoSeas from "../../../resources/maps/BetweenTwoSeasThumb.webp";
import blackSea from "../../../resources/maps/BlackSeaThumb.webp";
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 faroeislands from "../../../resources/maps/FaroeIslandsThumb.webp";
@@ -63,6 +64,8 @@ export function getMapsImage(map: GameMapType): string {
return knownworld;
case GameMapType.FaroeIslands:
return faroeislands;
case GameMapType.DeglaciatedAntarctica:
return deglaciatedAntarctica;
default:
return "";
}
+1
View File
@@ -94,6 +94,7 @@ export abstract class DefaultServerConfig implements ServerConfig {
GameMapType.Oceania,
GameMapType.Japan, // Japan at this level because its 2/3 water
GameMapType.FaroeIslands,
GameMapType.DeglaciatedAntarctica,
GameMapType.EuropeClassic,
].includes(map)
) {
+7 -1
View File
@@ -69,6 +69,7 @@ export enum GameMapType {
BetweenTwoSeas = "Between Two Seas",
KnownWorld = "Known World",
FaroeIslands = "FaroeIslands",
DeglaciatedAntarctica = "Deglaciated Antarctica",
}
export const mapCategories: Record<string, GameMapType[]> = {
@@ -93,7 +94,12 @@ export const mapCategories: Record<string, GameMapType[]> = {
GameMapType.Australia,
GameMapType.FaroeIslands,
],
fantasy: [GameMapType.Pangaea, GameMapType.Mars, GameMapType.KnownWorld],
fantasy: [
GameMapType.Pangaea,
GameMapType.Mars,
GameMapType.KnownWorld,
GameMapType.DeglaciatedAntarctica,
],
};
export enum GameType {
+1
View File
@@ -42,6 +42,7 @@ const MAP_FILE_NAMES: Record<GameMapType, string> = {
[GameMapType.BetweenTwoSeas]: "BetweenTwoSeas",
[GameMapType.KnownWorld]: "KnownWorld",
[GameMapType.FaroeIslands]: "FaroeIslands",
[GameMapType.DeglaciatedAntarctica]: "DeglaciatedAntarctica",
[GameMapType.EuropeClassic]: "EuropeClassic",
};
+1
View File
@@ -24,6 +24,7 @@ const maps = [
"Japan",
"KnownWorld",
"FaroeIslands",
"DeglaciatedAntarctica",
];
const removeSmall = true;
+1
View File
@@ -90,6 +90,7 @@ export class MapPlaylist {
Iceland: 2,
SouthAmerica: 1,
KnownWorld: 2,
DeglaciatedAntarctica: 2,
};
case PlaylistType.SmallMaps:
return {