mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 07:50:45 +00:00
New and updated categories for maps (#4254)
Resolves #4250 ## Description: Huge update for the map categories: https://github.com/user-attachments/assets/b7dc6344-efdc-4073-b15a-92b6dccdcc19 **New Categories** - Re-adds Continental category, with the 7 traditional continents - Re-adds the category of Arcade along all its maps. - Renames "Other" to "Fictional", so that tag is more specific and feels more in-theme with the others. The info.json's of the maps that had the Other category got changed to Fictional **Map Category changes** - **achiran**: adds Europe (while the map is fictional, it is made up of real islands from ireland. (Since world includes Dyslexdria and Antarctica has Deglaciated Antarctica, both fictional , i figured for consistency we could include these mash-up maps too) - **aegean**: adds Asia category (Turkey is in Asia) - **arctic**: adds Asia category - **choppingblock**: updated "other" to "fictional", added to "new" - **deglaciatedantarctica**: updated "other" to "fictional" - **didier**: re-added to Arcade - **didierfrance**: re-added to Arcade - **dyslexdria**: updated "other" to "fictional" - **fourislands**: updated "other" to "fictional" - **hawaii**: remove north_america tag (while part of the US, hawaii is geographically only in Oceania) - **labyrinth**: added to new, re-added to Arcade - **marenostrum**: added africa and asia tags, the continents which the mediterranean borders - **onion**: re-added to Arcade - **pangaea**: updated "other" to "fictional" - **passage**: updated "other" to "fictional" - **sierpinski** re-added to Arcade - **surrounded**: updated "other" to "fictional" - **svalmel**: updated "other" to "fictional", added to europe and north_america (same logic as achiran) - **thebox**: re-added to Arcade - **tradersdream**: updated "other" to "fictional" - **worldinverted**: updated "other" to "fictional", added to "new" - **africa**: added to Continental - **antarctica**: added to Continental - **asia**: added to Continental - **europe**: added to Continental - **northamerica**: added to Continental - **southamerica**: added to Continental - **oceania**: added to Continental - **mississippiriver**: added to "new" - **korea**: added to "new" - **middleeast**: added to "new" - **balkans**: added to "new" - **indiansubcontinent**: added to "new" - **taiwanstrait**: added to "new" - **northwestpassage**: added to "new" - **southeastasia**: added to "new" - **venice**: added to "new" - **yellowsea**: added to "new" - **hongkong**: added to "new" - **titan**: added to "new" - **caribbean**: added to "new" - **juandefucastrait**: added to "new" - **danishstraits**: added to "new" ## 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 ## Please put your Discord username so you can be contacted if a bug or regression is found: tri.star1011
This commit is contained in:
@@ -126,7 +126,7 @@ Example:
|
||||
|
||||
`translation_key` is the key of the map's display name in `../resources/lang/en.json`. It must be `map.<map_name>`.
|
||||
|
||||
`categories` groups the map in the map picker. Each entry must be one of: `featured`, `world`, `europe`, `asia`, `north_america`, `africa`, `south_america`, `oceania`, `antarctica`, `cosmic`, `tournament`, `other`. Maps that straddle regions (e.g. Black Sea, Bering Strait) can list more than one. Add `featured` to show the map in the featured section of the map picker.
|
||||
`categories` groups the map in the map picker. Each entry must be one of: `featured`, `continental`, `world`, `europe`, `asia`, `north_america`, `africa`, `south_america`, `oceania`, `antarctica`, `cosmic`, `tournament`, `fictional`, `arcade`. Maps that straddle regions (e.g. Black Sea, Bering Strait) can list more than one. Add `featured` to show the map in the featured section of the map picker.
|
||||
|
||||
`multiplayer_frequency` is how many times the map appears in the public multiplayer playlist. Use 0 (or omit) to keep the map out of the regular rotation.
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"id": "Achiran",
|
||||
"name": "Achiran",
|
||||
"translation_key": "map.achiran",
|
||||
"categories": ["other"],
|
||||
"categories": ["fictional", "europe"],
|
||||
"multiplayer_frequency": 5,
|
||||
"nations": [
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"id": "Aegean",
|
||||
"name": "Aegean",
|
||||
"translation_key": "map.aegean",
|
||||
"categories": ["europe"],
|
||||
"categories": ["europe", "asia"],
|
||||
"multiplayer_frequency": 6,
|
||||
"special_team_count": 2,
|
||||
"nations": [
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"id": "Africa",
|
||||
"name": "Africa",
|
||||
"translation_key": "map.africa",
|
||||
"categories": ["featured", "africa"],
|
||||
"categories": ["featured", "continental", "africa"],
|
||||
"multiplayer_frequency": 7,
|
||||
"featured_rank": 6,
|
||||
"nations": [
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"id": "Antarctica",
|
||||
"name": "Antarctica",
|
||||
"translation_key": "map.antarctica",
|
||||
"categories": ["antarctica"],
|
||||
"categories": ["antarctica", "continental"],
|
||||
"multiplayer_frequency": 1,
|
||||
"nations": [
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"id": "Arctic",
|
||||
"name": "Arctic",
|
||||
"translation_key": "map.arctic",
|
||||
"categories": ["europe", "north_america"],
|
||||
"categories": ["europe", "north_america", "asia"],
|
||||
"multiplayer_frequency": 6,
|
||||
"nations": [
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"id": "Asia",
|
||||
"name": "Asia",
|
||||
"translation_key": "map.asia",
|
||||
"categories": ["featured", "asia"],
|
||||
"categories": ["featured", "continental", "asia"],
|
||||
"multiplayer_frequency": 6,
|
||||
"featured_rank": 5,
|
||||
"nations": [
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"name": "Baikal Nuke Wars",
|
||||
"display_name": "Baikal (Nuke Wars)",
|
||||
"translation_key": "map.baikalnukewars",
|
||||
"categories": ["other"],
|
||||
"categories": ["fictional"],
|
||||
"multiplayer_frequency": 0,
|
||||
"nations": [],
|
||||
"teamGameSpawnAreas": {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"id": "Balkans",
|
||||
"name": "Balkans",
|
||||
"translation_key": "map.balkans",
|
||||
"categories": ["europe"],
|
||||
"categories": ["new", "europe"],
|
||||
"multiplayer_frequency": 6,
|
||||
"nations": [
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"id": "Caribbean",
|
||||
"name": "Caribbean",
|
||||
"translation_key": "map.caribbean",
|
||||
"categories": ["north_america"],
|
||||
"categories": ["new", "north_america"],
|
||||
"multiplayer_frequency": 5,
|
||||
"nations": [
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"id": "ChoppingBlock",
|
||||
"name": "Chopping Block",
|
||||
"translation_key": "map.choppingblock",
|
||||
"categories": ["other"],
|
||||
"categories": ["new", "arcade"],
|
||||
"multiplayer_frequency": 5,
|
||||
"special_team_count": 4,
|
||||
"nations": [
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"id": "DanishStraits",
|
||||
"name": "Danish Straits",
|
||||
"translation_key": "map.danishstraits",
|
||||
"categories": ["europe"],
|
||||
"categories": ["new", "europe"],
|
||||
"multiplayer_frequency": 5,
|
||||
"nations": [
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"id": "DeglaciatedAntarctica",
|
||||
"name": "Deglaciated Antarctica",
|
||||
"translation_key": "map.deglaciatedantarctica",
|
||||
"categories": ["antarctica"],
|
||||
"categories": ["antarctica", "fictional"],
|
||||
"multiplayer_frequency": 4,
|
||||
"nations": [
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"id": "Didier",
|
||||
"name": "Didier",
|
||||
"translation_key": "map.didier",
|
||||
"categories": ["other"],
|
||||
"categories": ["arcade"],
|
||||
"multiplayer_frequency": 1,
|
||||
"nations": [
|
||||
{
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"name": "Didier France",
|
||||
"display_name": "Didier (France)",
|
||||
"translation_key": "map.didierfrance",
|
||||
"categories": ["other"],
|
||||
"categories": ["arcade"],
|
||||
"multiplayer_frequency": 1,
|
||||
"nations": [
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"id": "Dyslexdria",
|
||||
"name": "Dyslexdria",
|
||||
"translation_key": "map.dyslexdria",
|
||||
"categories": ["world"],
|
||||
"categories": ["world", "fictional"],
|
||||
"multiplayer_frequency": 8,
|
||||
"nations": [
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"id": "Europe",
|
||||
"name": "Europe",
|
||||
"translation_key": "map.europe",
|
||||
"categories": ["featured", "europe"],
|
||||
"categories": ["featured", "continental", "europe"],
|
||||
"multiplayer_frequency": 7,
|
||||
"featured_rank": 2,
|
||||
"nations": [
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"name": "Europe Classic",
|
||||
"display_name": "Europe (Classic)",
|
||||
"translation_key": "map.europeclassic",
|
||||
"categories": ["europe"],
|
||||
"categories": ["europe", "continental"],
|
||||
"multiplayer_frequency": 0,
|
||||
"nations": [
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"id": "FourIslands",
|
||||
"name": "Four Islands",
|
||||
"translation_key": "map.fourislands",
|
||||
"categories": ["other"],
|
||||
"categories": ["fictional"],
|
||||
"multiplayer_frequency": 4,
|
||||
"special_team_count": 4,
|
||||
"nations": [
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"id": "Hawaii",
|
||||
"name": "Hawaii",
|
||||
"translation_key": "map.hawaii",
|
||||
"categories": ["north_america", "oceania"],
|
||||
"categories": ["oceania"],
|
||||
"multiplayer_frequency": 4,
|
||||
"nations": [
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"id": "HongKong",
|
||||
"name": "Hong Kong",
|
||||
"translation_key": "map.hongkong",
|
||||
"categories": ["asia"],
|
||||
"categories": ["new", "asia"],
|
||||
"multiplayer_frequency": 6,
|
||||
"nations": [
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"id": "IndianSubcontinent",
|
||||
"name": "Indian Subcontinent",
|
||||
"translation_key": "map.indiansubcontinent",
|
||||
"categories": ["asia"],
|
||||
"categories": ["new", "asia"],
|
||||
"multiplayer_frequency": 8,
|
||||
"nations": [
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"id": "JuanDeFucaStrait",
|
||||
"name": "Juan De Fuca Strait",
|
||||
"translation_key": "map.juandefucastrait",
|
||||
"categories": ["north_america"],
|
||||
"categories": ["new", "north_america"],
|
||||
"multiplayer_frequency": 4,
|
||||
"special_team_count": 3,
|
||||
"nations": [
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"id": "Korea",
|
||||
"name": "Korea",
|
||||
"translation_key": "map.korea",
|
||||
"categories": ["asia"],
|
||||
"categories": ["new", "asia"],
|
||||
"multiplayer_frequency": 5,
|
||||
"nations": [
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"id": "Labyrinth",
|
||||
"name": "Labyrinth",
|
||||
"translation_key": "map.labyrinth",
|
||||
"categories": ["other"],
|
||||
"categories": ["new", "arcade"],
|
||||
"multiplayer_frequency": 6,
|
||||
"nations": [
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"id": "MareNostrum",
|
||||
"name": "Mare Nostrum",
|
||||
"translation_key": "map.marenostrum",
|
||||
"categories": ["europe"],
|
||||
"categories": ["europe", "asia", "africa"],
|
||||
"multiplayer_frequency": 6,
|
||||
"nations": [
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"id": "MiddleEast",
|
||||
"name": "Middle East",
|
||||
"translation_key": "map.middleeast",
|
||||
"categories": ["asia"],
|
||||
"categories": ["new", "asia"],
|
||||
"multiplayer_frequency": 8,
|
||||
"nations": [
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"id": "MississippiRiver",
|
||||
"name": "Mississippi River",
|
||||
"translation_key": "map.mississippiriver",
|
||||
"categories": ["north_america"],
|
||||
"categories": ["new", "north_america"],
|
||||
"multiplayer_frequency": 3,
|
||||
"nations": [
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"id": "NorthAmerica",
|
||||
"name": "North America",
|
||||
"translation_key": "map.northamerica",
|
||||
"categories": ["featured", "north_america"],
|
||||
"categories": ["featured", "continental", "north_america"],
|
||||
"multiplayer_frequency": 5,
|
||||
"featured_rank": 3,
|
||||
"nations": [
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"id": "NorthwestPassage",
|
||||
"name": "Northwest Passage",
|
||||
"translation_key": "map.northwestpassage",
|
||||
"categories": ["north_america"],
|
||||
"categories": ["new", "north_america"],
|
||||
"multiplayer_frequency": 5,
|
||||
"nations": [
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"id": "Oceania",
|
||||
"name": "Oceania",
|
||||
"translation_key": "map.oceania",
|
||||
"categories": ["oceania"],
|
||||
"categories": ["oceania", "continental"],
|
||||
"multiplayer_frequency": 0,
|
||||
"nations": [
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"id": "Onion",
|
||||
"name": "Onion",
|
||||
"translation_key": "map.onion",
|
||||
"categories": ["other"],
|
||||
"categories": ["new", "arcade"],
|
||||
"multiplayer_frequency": 2,
|
||||
"nations": [
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"id": "Pangaea",
|
||||
"name": "Pangaea",
|
||||
"translation_key": "map.pangaea",
|
||||
"categories": ["other"],
|
||||
"categories": ["fictional"],
|
||||
"multiplayer_frequency": 5,
|
||||
"nations": [
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"id": "Passage",
|
||||
"name": "Passage",
|
||||
"translation_key": "map.passage",
|
||||
"categories": ["other"],
|
||||
"categories": ["fictional"],
|
||||
"multiplayer_frequency": 4,
|
||||
"nations": [
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"id": "Sierpinski",
|
||||
"name": "Sierpinski",
|
||||
"translation_key": "map.sierpinski",
|
||||
"categories": ["other"],
|
||||
"categories": ["arcade"],
|
||||
"multiplayer_frequency": 10,
|
||||
"nations": [
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"id": "SouthAmerica",
|
||||
"name": "South America",
|
||||
"translation_key": "map.southamerica",
|
||||
"categories": ["featured", "south_america"],
|
||||
"categories": ["featured", "continental", "south_america"],
|
||||
"multiplayer_frequency": 5,
|
||||
"featured_rank": 4,
|
||||
"nations": [
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"name": "SoutheastAsia",
|
||||
"display_name": "Southeast Asia",
|
||||
"translation_key": "map.southeastasia",
|
||||
"categories": ["asia"],
|
||||
"categories": ["new", "asia"],
|
||||
"multiplayer_frequency": 5,
|
||||
"nations": [
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"id": "Surrounded",
|
||||
"name": "Surrounded",
|
||||
"translation_key": "map.surrounded",
|
||||
"categories": ["other"],
|
||||
"categories": ["fictional"],
|
||||
"multiplayer_frequency": 4,
|
||||
"special_team_count": 4,
|
||||
"nations": [
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"id": "Svalmel",
|
||||
"name": "Svalmel",
|
||||
"translation_key": "map.svalmel",
|
||||
"categories": ["other"],
|
||||
"categories": ["fictional", "europe", "north_america"],
|
||||
"multiplayer_frequency": 8,
|
||||
"nations": [
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"id": "TaiwanStrait",
|
||||
"name": "Taiwan Strait",
|
||||
"translation_key": "map.taiwanstrait",
|
||||
"categories": ["asia"],
|
||||
"categories": ["new", "asia"],
|
||||
"multiplayer_frequency": 5,
|
||||
"nations": [
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"id": "TheBox",
|
||||
"name": "The Box",
|
||||
"translation_key": "map.thebox",
|
||||
"categories": ["other"],
|
||||
"categories": ["arcade"],
|
||||
"multiplayer_frequency": 3,
|
||||
"nations": [
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"id": "Titan",
|
||||
"name": "Titan",
|
||||
"translation_key": "map.titan",
|
||||
"categories": ["cosmic"],
|
||||
"categories": ["new", "cosmic"],
|
||||
"multiplayer_frequency": 3,
|
||||
"nations": [
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"id": "TradersDream",
|
||||
"name": "Traders Dream",
|
||||
"translation_key": "map.tradersdream",
|
||||
"categories": ["other"],
|
||||
"categories": ["fictional"],
|
||||
"multiplayer_frequency": 4,
|
||||
"special_team_count": 2,
|
||||
"nations": [
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"id": "Venice",
|
||||
"name": "Venice",
|
||||
"translation_key": "map.venice",
|
||||
"categories": ["europe"],
|
||||
"categories": ["new", "europe"],
|
||||
"multiplayer_frequency": 6,
|
||||
"nations": [
|
||||
{
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"id": "WarshipWarship",
|
||||
"translation_key": "map.warshipwarship",
|
||||
"multiplayer_frequency": 3,
|
||||
"categories": ["other"],
|
||||
"categories": ["arcade", "new"],
|
||||
"nations": [
|
||||
{
|
||||
"coordinates": [750, 680],
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"id": "WorldInverted",
|
||||
"name": "World Inverted",
|
||||
"translation_key": "map.worldinverted",
|
||||
"categories": ["world"],
|
||||
"categories": ["new", "world", "fictional"],
|
||||
"multiplayer_frequency": 8,
|
||||
"nations": [
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"id": "YellowSea",
|
||||
"name": "Yellow Sea",
|
||||
"translation_key": "map.yellowsea",
|
||||
"categories": ["asia"],
|
||||
"categories": ["new", "asia"],
|
||||
"multiplayer_frequency": 5,
|
||||
"nations": [
|
||||
{
|
||||
|
||||
@@ -13,7 +13,9 @@ import (
|
||||
// the display order of map categories in the generated TypeScript.
|
||||
var categoryOrder = []string{
|
||||
"featured",
|
||||
"new",
|
||||
"world",
|
||||
"continental",
|
||||
"europe",
|
||||
"asia",
|
||||
"north_america",
|
||||
@@ -22,8 +24,9 @@ var categoryOrder = []string{
|
||||
"oceania",
|
||||
"antarctica",
|
||||
"cosmic",
|
||||
"fictional",
|
||||
"arcade",
|
||||
"tournament",
|
||||
"other",
|
||||
}
|
||||
|
||||
// mapInfo is the subset of info.json fields used for code generation.
|
||||
|
||||
Reference in New Issue
Block a user