civ_map_generator 0.1.5

A civilization map generator
Documentation
[
	// Terrain features
	{
		"name": "Forest",
		"type": "TerrainFeature",
		"production": 1,
		"food": 1,
		"movementCost": 2,
		"overrideStats": true,
		"unbuildable": true,
		"defenceBonus": 0.25,
		"occursOnType": [
			"Flatland",
			"Hill"
		],
		"occursOnBase": [
			"Tundra",
			"Plain",
			"Grassland"
		],
		"uniques": [
			"Rough terrain",
			"Vegetation",
			"Provides a one-time Production bonus to the closest city when cut down",
			"Blocks line-of-sight from tiles at same elevation",
			"[25]% Chance to be destroyed by nukes",
			"A Region is formed with at least [30]% [Forest] tiles, with priority [3]",
			"A Region is formed with at least [35]% [Forest] tiles and [Jungle] tiles, with priority [3]",
			"A Region can not contain more [Jungle] tiles than [Forest] tiles",
			"Considered [Desirable] when determining start locations",
			"Considered [Production] when determining start locations",
			"Considered [Food] when determining start locations <in [Forest] Regions>",
			"Considered [Food] when determining start locations <in [Tundra] Regions>",
			"Every [39] tiles with this terrain will receive a major deposit of a strategic resource."
		],
		"civilopediaText": [
			{
				"text": "A Camp can be built here without cutting it down",
				"link": "Improvement/Camp"
			}
		]
	},
	{
		"name": "Jungle",
		"type": "TerrainFeature",
		"food": 2,
		"movementCost": 2,
		"overrideStats": true,
		"unbuildable": true,
		"defenceBonus": 0.25,
		"occursOnType": [
			"Flatland",
			"Hill"
		],
		"occursOnBase": [
			"Grassland"
		],
		"uniques": [
			"Rough terrain",
			"Vegetation",
			"Blocks line-of-sight from tiles at same elevation",
			"[25]% Chance to be destroyed by nukes",
			"[-1] to Fertility for Map Generation",
			"A Region is formed with at least [30]% [Jungle] tiles, with priority [2]",
			"A Region is formed with at least [35]% [Jungle] tiles and [Forest] tiles, with priority [2]",
			"A Region can not contain more [Forest] tiles than [Jungle] tiles",
			"Considered [Food] when determining start locations <in all except [Grassland] Regions>",
			"Considered [Desirable] when determining start locations <in all except [Grassland] Regions>",
			"Every [33] tiles with this terrain will receive a major deposit of a strategic resource."
		]
	},
	{
		"name": "Marsh",
		"type": "TerrainFeature",
		"food": -1,
		"movementCost": 3,
		"unbuildable": true,
		"defenceBonus": -0.15,
		"occursOnType": [
			"Flatland"
		],
		"occursOnBase": [
			"Grassland"
		],
		"uniques": [
			"Rare feature",
			"[-2] to Fertility for Map Generation",
			"Every [9] tiles with this terrain will receive a major deposit of a strategic resource."
		],
		"civilopediaText": [
			{
				"text": "Only Polders can be built here",
				"link": "Improvement/Polder"
			}
		]
	},
	{
		"name": "Fallout",
		"type": "TerrainFeature",
		"movementCost": 2,
		"unbuildable": true,
		"uniques": [
			"Nullifies all other stats this tile provides",
			"Doesn't generate naturally"
		],
		// For map editor only - the generator won't place it without code or enabling uniques
		// If the map generator is ever updated to always take these into account, it should also take the "Doesn't generate naturally" unique into account
		"occursOnBase": [
			"Grassland",
			"Plain",
			"Desert",
			"Tundra",
			"Snow"
		],
		"defenceBonus": -0.15
	},
	{
		"name": "Oasis",
		"type": "TerrainFeature",
		"food": 3,
		"gold": 1,
		"movementCost": 1,
		"unbuildable": true,
		"defenceBonus": -0.1,
		"occursOnType": [
			"Flatland"
		],
		"occursOnBase": [
			"Desert"
		],
		"uniques": [
			"Fresh water",
			"Rare feature",
			"Only [All Road] improvements may be built on this tile",
			"Always Fertility [4] for Map Generation",
			"Considered [Food] when determining start locations",
			"Considered [Desirable] when determining start locations"
		]
	},
	{
		"name": "Floodplain",
		"type": "TerrainFeature",
		"food": 2,
		"movementCost": 1,
		"defenceBonus": -0.1,
		"occursOnType": [
			"Flatland"
		],
		"occursOnBase": [
			"Desert"
		],
		"uniques": [
			"Always Fertility [5] for Map Generation",
			"Considered [Food] when determining start locations",
			"Considered [Desirable] when determining start locations"
		]
	},
	{
		"name": "Ice",
		"type": "TerrainFeature",
		"impassable": true,
		"overrideStats": true,
		"occursOnType": [
			"Water"
		],
		"occursOnBase": [
			"Ocean",
			"Coast",
			"Lake"
		],
		"uniques": [
			"Occurs at temperature between [-1] and [-0.8] and humidity between [0] and [1]",
			"[-1] to Fertility for Map Generation",
			"Considered [Undesirable] when determining start locations"
		]
	},
	{
		"name": "Atoll",
		"type": "TerrainFeature",
		"movementCost": 1,
		"food": 1,
		"production": 1,
		"occursOnType": [
			"Water"
		],
		"occursOnBase": [
			"Ocean",
			"Coast"
		],
		"uniques": [
			"Rare feature"
		]
	}
]