mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 09:30:45 +00:00
Add Halkidiki Map (#799)
## Description: This PR adds the Halkidiki map. It's a region in Greece with rich history that is very popular also with tourism. ## 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: <DISCORD USERNAME> Nikola123
This commit is contained in:
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 41 KiB |
@@ -142,7 +142,8 @@
|
||||
"deglaciatedantarctica": "Deglaciated Antarctica",
|
||||
"europeclassic": "Europe (classic)",
|
||||
"falklandislands": "Falkland Islands",
|
||||
"baikal": "Baikal"
|
||||
"baikal": "Baikal",
|
||||
"halkidiki": "Halkidiki"
|
||||
},
|
||||
"map_categories": {
|
||||
"continental": "Continental",
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,55 @@
|
||||
{
|
||||
"name": "Chalkidiki",
|
||||
"width": 2200,
|
||||
"height": 1760,
|
||||
"nations": [
|
||||
{
|
||||
"coordinates": [1798, 984],
|
||||
"name": "Mount Athos",
|
||||
"strength": 2,
|
||||
"flag": "ha_ma"
|
||||
},
|
||||
{
|
||||
"coordinates": [921, 1445],
|
||||
"name": "Kassandra",
|
||||
"strength": 2,
|
||||
"flag": "gr"
|
||||
},
|
||||
{
|
||||
"coordinates": [1488, 1387],
|
||||
"name": "Sithonia",
|
||||
"strength": 2,
|
||||
"flag": "gr"
|
||||
},
|
||||
{
|
||||
"coordinates": [380, 459],
|
||||
"name": "Thessaloniki",
|
||||
"strength": 2,
|
||||
"flag": "gr"
|
||||
},
|
||||
{
|
||||
"coordinates": [867, 803],
|
||||
"name": "Polygyros",
|
||||
"strength": 2,
|
||||
"flag": "gr"
|
||||
},
|
||||
{
|
||||
"coordinates": [218, 81],
|
||||
"name": "Kilkis",
|
||||
"strength": 2,
|
||||
"flag": "gr"
|
||||
},
|
||||
{
|
||||
"coordinates": [1192, 163],
|
||||
"name": "Serres",
|
||||
"strength": 2,
|
||||
"flag": "gr"
|
||||
},
|
||||
{
|
||||
"coordinates": [1807, 204],
|
||||
"name": "Thrace",
|
||||
"strength": 2,
|
||||
"flag": "gr"
|
||||
}
|
||||
]
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 3.2 MiB |
File diff suppressed because one or more lines are too long
Binary file not shown.
|
After Width: | Height: | Size: 19 KiB |
@@ -28,6 +28,7 @@ export const MapDescription: Record<keyof typeof GameMapType, string> = {
|
||||
DeglaciatedAntarctica: "Deglaciated Antarctica",
|
||||
FalklandIslands: "Falkland Islands",
|
||||
Baikal: "Baikal",
|
||||
Halkidiki: "Halkidiki",
|
||||
};
|
||||
|
||||
@customElement("map-display")
|
||||
|
||||
@@ -11,6 +11,7 @@ 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 halkidiki from "../../../resources/maps/HalkidikiThumb.webp";
|
||||
import iceland from "../../../resources/maps/IcelandThumb.webp";
|
||||
import japan from "../../../resources/maps/JapanThumb.webp";
|
||||
import knownworld from "../../../resources/maps/KnownWorldThumb.webp";
|
||||
@@ -72,6 +73,8 @@ export function getMapsImage(map: GameMapType): string {
|
||||
return falklandislands;
|
||||
case GameMapType.Baikal:
|
||||
return baikal;
|
||||
case GameMapType.Halkidiki:
|
||||
return halkidiki;
|
||||
default:
|
||||
return "";
|
||||
}
|
||||
|
||||
@@ -131,6 +131,7 @@ export abstract class DefaultServerConfig implements ServerConfig {
|
||||
GameMapType.Asia,
|
||||
GameMapType.FalklandIslands,
|
||||
GameMapType.Baikal,
|
||||
GameMapType.Halkidiki,
|
||||
].includes(map)
|
||||
) {
|
||||
return Math.random() < 0.3 ? 50 : 25;
|
||||
|
||||
@@ -76,6 +76,7 @@ export enum GameMapType {
|
||||
DeglaciatedAntarctica = "Deglaciated Antarctica",
|
||||
FalklandIslands = "Falkland Islands",
|
||||
Baikal = "Baikal",
|
||||
Halkidiki = "Halkidiki",
|
||||
}
|
||||
|
||||
export const mapCategories: Record<string, GameMapType[]> = {
|
||||
@@ -101,6 +102,7 @@ export const mapCategories: Record<string, GameMapType[]> = {
|
||||
GameMapType.FaroeIslands,
|
||||
GameMapType.FalklandIslands,
|
||||
GameMapType.Baikal,
|
||||
GameMapType.Halkidiki,
|
||||
],
|
||||
fantasy: [
|
||||
GameMapType.Pangaea,
|
||||
|
||||
@@ -46,6 +46,7 @@ const MAP_FILE_NAMES: Record<GameMapType, string> = {
|
||||
[GameMapType.EuropeClassic]: "EuropeClassic",
|
||||
[GameMapType.FalklandIslands]: "FalklandIslands",
|
||||
[GameMapType.Baikal]: "Baikal",
|
||||
[GameMapType.Halkidiki]: "Halkidiki",
|
||||
};
|
||||
|
||||
class GameMapLoader {
|
||||
|
||||
@@ -27,6 +27,7 @@ const maps = [
|
||||
"DeglaciatedAntarctica",
|
||||
"FalklandIslands",
|
||||
"Baikal",
|
||||
"Halkidiki",
|
||||
];
|
||||
|
||||
const removeSmall = true;
|
||||
|
||||
@@ -31,6 +31,7 @@ const frequency = {
|
||||
FaroeIslands: 1,
|
||||
FalklandIslands: 1,
|
||||
Baikal: 1,
|
||||
Halkidiki: 1,
|
||||
};
|
||||
|
||||
interface MapWithMode {
|
||||
|
||||
Reference in New Issue
Block a user