mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-22 17:36:38 +00:00
Add Two Lakes (#2743)
## Description: This PR adds the Two Lakes map, based on the irl area around lake Ohrid and lake Prespa Describe the PR. ## 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 ## 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:
@@ -44,6 +44,7 @@ export const MapDescription: Record<keyof typeof GameMapType, string> = {
|
||||
Lisbon: "Lisbon",
|
||||
Manicouagan: "Manicouagan",
|
||||
Lemnos: "Lemnos",
|
||||
TwoLakes: "Two Lakes",
|
||||
};
|
||||
|
||||
@customElement("map-display")
|
||||
|
||||
@@ -85,6 +85,7 @@ const numPlayersConfig = {
|
||||
[GameMapType.Svalmel]: [40, 36, 30],
|
||||
[GameMapType.World]: [50, 30, 20],
|
||||
[GameMapType.Lemnos]: [20, 15, 10],
|
||||
[GameMapType.TwoLakes]: [60, 50, 40],
|
||||
} as const satisfies Record<GameMapType, [number, number, number]>;
|
||||
|
||||
export abstract class DefaultServerConfig implements ServerConfig {
|
||||
|
||||
@@ -107,6 +107,7 @@ export enum GameMapType {
|
||||
Lisbon = "Lisbon",
|
||||
Manicouagan = "Manicouagan",
|
||||
Lemnos = "Lemnos",
|
||||
TwoLakes = "Two Lakes",
|
||||
}
|
||||
|
||||
export type GameMapName = keyof typeof GameMapType;
|
||||
@@ -145,6 +146,7 @@ export const mapCategories: Record<string, GameMapType[]> = {
|
||||
GameMapType.NewYorkCity,
|
||||
GameMapType.Manicouagan,
|
||||
GameMapType.Lemnos,
|
||||
GameMapType.TwoLakes,
|
||||
],
|
||||
fantasy: [
|
||||
GameMapType.Pangaea,
|
||||
|
||||
@@ -57,6 +57,7 @@ const frequency: Partial<Record<GameMapName, number>> = {
|
||||
Svalmel: 8,
|
||||
World: 8,
|
||||
Lemnos: 3,
|
||||
TwoLakes: 6,
|
||||
};
|
||||
|
||||
interface MapWithMode {
|
||||
|
||||
Reference in New Issue
Block a user