Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/maps/random/belgian_uplands.js
Show All 21 Lines | |||||
setWaterHeight(heightSeaGround); | setWaterHeight(heightSeaGround); | ||||
const textueByHeight = []; | const textueByHeight = []; | ||||
// Deep water | // Deep water | ||||
textueByHeight.push({"upperHeightLimit": heightRange.min + 1/3 * (heightSeaGroundAdjusted - heightRange.min), "terrain": "temp_sea_rocks"}); | textueByHeight.push({"upperHeightLimit": heightRange.min + 1/3 * (heightSeaGroundAdjusted - heightRange.min), "terrain": "temp_sea_rocks"}); | ||||
// Medium deep water (with fish) | // Medium deep water (with fish) | ||||
var terrains = ["temp_sea_weed"]; | let terrains = ["temp_sea_weed"]; | ||||
terrains = terrains.concat(terrains, terrains, terrains, terrains); | terrains = terrains.concat(terrains, terrains, terrains, terrains); | ||||
terrains = terrains.concat(terrains, terrains, terrains, terrains); | terrains = terrains.concat(terrains, terrains, terrains, terrains); | ||||
terrains.push("temp_sea_weed|gaia/fish/generic"); | terrains.push("temp_sea_weed|gaia/fish/generic"); | ||||
textueByHeight.push({"upperHeightLimit": heightRange.min + 2/3 * (heightSeaGroundAdjusted - heightRange.min), "terrain": terrains}); | textueByHeight.push({"upperHeightLimit": heightRange.min + 2/3 * (heightSeaGroundAdjusted - heightRange.min), "terrain": terrains}); | ||||
// Flat Water | // Flat Water | ||||
textueByHeight.push({"upperHeightLimit": heightRange.min + 3/3 * (heightSeaGroundAdjusted - heightRange.min), "terrain": "temp_mud_a"}); | textueByHeight.push({"upperHeightLimit": heightRange.min + 3/3 * (heightSeaGroundAdjusted - heightRange.min), "terrain": "temp_mud_a"}); | ||||
// Water surroundings/bog (with stone/metal some rabits and bushes) | // Water surroundings/bog (with stone/metal some rabits and bushes) | ||||
var terrains = ["temp_plants_bog", "temp_plants_bog_aut", "temp_dirt_gravel_plants", "temp_grass_d"]; | terrains = ["temp_plants_bog", "temp_plants_bog_aut", "temp_dirt_gravel_plants", "temp_grass_d"]; | ||||
terrains = terrains.concat(terrains, terrains, terrains, terrains, terrains); | terrains = terrains.concat(terrains, terrains, terrains, terrains, terrains); | ||||
terrains = ["temp_plants_bog|gaia/tree/bush_temperate"].concat(terrains, terrains); | terrains = ["temp_plants_bog|gaia/tree/bush_temperate"].concat(terrains, terrains); | ||||
terrains = ["temp_dirt_gravel_plants|gaia/ore/temperate_small", "temp_dirt_gravel_plants|gaia/rock/temperate_small", "temp_plants_bog|gaia/fauna_rabbit"].concat(terrains, terrains); | terrains = ["temp_dirt_gravel_plants|gaia/ore/temperate_small", "temp_dirt_gravel_plants|gaia/rock/temperate_small", "temp_plants_bog|gaia/fauna_rabbit"].concat(terrains, terrains); | ||||
terrains = ["temp_plants_bog_aut|gaia/tree/dead"].concat(terrains, terrains); | terrains = ["temp_plants_bog_aut|gaia/tree/dead"].concat(terrains, terrains); | ||||
textueByHeight.push({"upperHeightLimit": heightSeaGroundAdjusted + 1/6 * (heightRange.max - heightSeaGroundAdjusted), "terrain": terrains}); | textueByHeight.push({"upperHeightLimit": heightSeaGroundAdjusted + 1/6 * (heightRange.max - heightSeaGroundAdjusted), "terrain": terrains}); | ||||
// Juicy grass near bog | // Juicy grass near bog | ||||
textueByHeight.push({"upperHeightLimit": heightSeaGroundAdjusted + 2/6 * (heightRange.max - heightSeaGroundAdjusted), | textueByHeight.push({"upperHeightLimit": heightSeaGroundAdjusted + 2/6 * (heightRange.max - heightSeaGroundAdjusted), | ||||
"terrain": ["temp_grass", "temp_grass_d", "temp_grass_long_b", "temp_grass_plants"]}); | "terrain": ["temp_grass", "temp_grass_d", "temp_grass_long_b", "temp_grass_plants"]}); | ||||
// Medium level grass | // Medium level grass | ||||
// const testActor = "actor|geology/decal_stone_medit_a.xml"; | // const testActor = "actor|geology/decal_stone_medit_a.xml"; | ||||
textueByHeight.push({"upperHeightLimit": heightSeaGroundAdjusted + 3/6 * (heightRange.max - heightSeaGroundAdjusted), | textueByHeight.push({"upperHeightLimit": heightSeaGroundAdjusted + 3/6 * (heightRange.max - heightSeaGroundAdjusted), | ||||
"terrain": ["temp_grass", "temp_grass_b", "temp_grass_c", "temp_grass_mossy"]}); | "terrain": ["temp_grass", "temp_grass_b", "temp_grass_c", "temp_grass_mossy"]}); | ||||
// Long grass near forest border | // Long grass near forest border | ||||
textueByHeight.push({"upperHeightLimit": heightSeaGroundAdjusted + 4/6 * (heightRange.max - heightSeaGroundAdjusted), | textueByHeight.push({"upperHeightLimit": heightSeaGroundAdjusted + 4/6 * (heightRange.max - heightSeaGroundAdjusted), | ||||
"terrain": ["temp_grass", "temp_grass_b", "temp_grass_c", "temp_grass_d", "temp_grass_long_b", "temp_grass_clovers_2", "temp_grass_mossy", "temp_grass_plants"]}); | "terrain": ["temp_grass", "temp_grass_b", "temp_grass_c", "temp_grass_d", "temp_grass_long_b", "temp_grass_clovers_2", "temp_grass_mossy", "temp_grass_plants"]}); | ||||
// Forest border (With wood/food plants/deer/rabits) | // Forest border (With wood/food plants/deer/rabits) | ||||
var terrains = ["temp_grass_plants|gaia/tree/euro_beech", "temp_grass_mossy|gaia/tree/poplar", "temp_grass_mossy|gaia/tree/poplar_lombardy", | terrains = ["temp_grass_plants|gaia/tree/euro_beech", "temp_grass_mossy|gaia/tree/poplar", "temp_grass_mossy|gaia/tree/poplar_lombardy", | ||||
"temp_grass_long|gaia/tree/bush_temperate", "temp_mud_plants|gaia/tree/bush_temperate", "temp_mud_plants|gaia/tree/bush_badlands", | "temp_grass_long|gaia/tree/bush_temperate", "temp_mud_plants|gaia/tree/bush_temperate", "temp_mud_plants|gaia/tree/bush_badlands", | ||||
"temp_grass_long|gaia/fruit/apple", "temp_grass_clovers|gaia/fruit/berry_01", "temp_grass_clovers_2|gaia/fruit/grapes", | "temp_grass_long|gaia/fruit/apple", "temp_grass_clovers|gaia/fruit/berry_01", "temp_grass_clovers_2|gaia/fruit/grapes", | ||||
"temp_grass_plants|gaia/fauna_deer", "temp_grass_long_b|gaia/fauna_rabbit"]; | "temp_grass_plants|gaia/fauna_deer", "temp_grass_long_b|gaia/fauna_rabbit"]; | ||||
const numTerrains = terrains.length; | const numTerrains = terrains.length; | ||||
for (let i = 0; i < numTerrains; i++) | for (let i = 0; i < numTerrains; i++) | ||||
terrains.push("temp_grass_plants"); | terrains.push("temp_grass_plants"); | ||||
textueByHeight.push({"upperHeightLimit": heightSeaGroundAdjusted + 5/6 * (heightRange.max - heightSeaGroundAdjusted), "terrain": terrains}); | textueByHeight.push({"upperHeightLimit": heightSeaGroundAdjusted + 5/6 * (heightRange.max - heightSeaGroundAdjusted), "terrain": terrains}); | ||||
▲ Show 20 Lines • Show All 214 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator