mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-02 13:38:08 +00:00
add South America map (#184)
This commit is contained in:
@@ -14,6 +14,7 @@ export const MapDescription: Record<keyof typeof GameMapType, string> = {
|
||||
Africa: "Africa",
|
||||
Asia: "Asia",
|
||||
Mars: "Mars",
|
||||
SouthAmerica: "South America",
|
||||
};
|
||||
|
||||
@customElement("map-display")
|
||||
|
||||
@@ -137,7 +137,6 @@ export class EventsDisplay extends LitElement implements Layer {
|
||||
this.outgoingBoats = myPlayer
|
||||
.units()
|
||||
.filter((u) => u.type() === UnitType.TransportShip);
|
||||
console.log("loan", this.outgoingBoats);
|
||||
|
||||
this.requestUpdate();
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ import oceania from "../../../resources/maps/Oceania.png";
|
||||
import europe from "../../../resources/maps/Europe.png";
|
||||
import mena from "../../../resources/maps/Mena.png";
|
||||
import northAmerica from "../../../resources/maps/NorthAmerica.png";
|
||||
import southAmerica from "../../../resources/maps/SouthAmerica.png";
|
||||
import blackSea from "../../../resources/maps/BlackSea.png";
|
||||
import africa from "../../../resources/maps/Africa.png";
|
||||
import asia from "../../../resources/maps/Asia.png";
|
||||
@@ -22,6 +23,8 @@ export function getMapsImage(map: GameMapType): string {
|
||||
return mena;
|
||||
case GameMapType.NorthAmerica:
|
||||
return northAmerica;
|
||||
case GameMapType.SouthAmerica:
|
||||
return southAmerica;
|
||||
case GameMapType.BlackSea:
|
||||
return blackSea;
|
||||
case GameMapType.Africa:
|
||||
|
||||
@@ -43,6 +43,7 @@ export enum GameMapType {
|
||||
Europe = "Europe",
|
||||
Mena = "Mena",
|
||||
NorthAmerica = "North America",
|
||||
SouthAmerica = "South America",
|
||||
Oceania = "Oceania",
|
||||
BlackSea = "Black Sea",
|
||||
Africa = "Africa",
|
||||
|
||||
@@ -33,6 +33,7 @@ const MAP_FILE_NAMES: Record<GameMapType, string> = {
|
||||
[GameMapType.Africa]: "Africa",
|
||||
[GameMapType.Asia]: "Asia",
|
||||
[GameMapType.Mars]: "Mars",
|
||||
[GameMapType.SouthAmerica]: "SouthAmerica",
|
||||
};
|
||||
|
||||
class GameMapLoader {
|
||||
|
||||
@@ -17,6 +17,7 @@ const maps = [
|
||||
"Mena",
|
||||
"Oceania",
|
||||
"NorthAmerica",
|
||||
"SouthAmerica",
|
||||
];
|
||||
const min_island_size = 30;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user