0ad/binaries/data/mods/public/maps/random
elexis 376d8b3d1e Cleanup most createArea and some createObjectGroup calls in random map scripts.
Inline the placer, terrainPainter, elevationPainter, group and sizes
helper variables that are used only once.
Thus do not hoist variable declarations from unrelated scopes.
Remove few dozens of painters that are overpainted by the
paintBasedOnTerrainHeight call afterwards.
Remove 334 noisy misaligned code comments (// terrains // widths //
blend radius and // some variation).
Label the createArea calls so that the reader knows what they do.
Remove unbenefitial Math.PI/8 grass min/max angle limitation.
Use height variables for the SmoothElevationPainter calls so that levels
can be modified more easily.
Use Math prototype functions instead of the unfortunate rmgen proxies.
Does not touch starting base code, Unknown maps, Snowflake Searocks and
Corsica & Sardinia which need special treatment.

This was SVN commit r20301.
2017-10-15 17:53:12 +00:00
..
heightmap Don't use the default metal/stone mines of the random biome system in the independent heightmap library (following 7471a0db63) that is only used by a map that doesn't use the random biome system, revealed by cc0d4f25da. 2017-09-09 14:34:15 +00:00
rmbiome Cleanup most createArea and some createObjectGroup calls in random map scripts. 2017-10-15 17:53:12 +00:00
rmgen Replace hardcoded trigonometry magic numbers on Corinthian Isthmus with a rotateCoordinates computation, allowing to change the river angle arbitrarily. 2017-10-14 15:55:04 +00:00
rmgen2 Cleanup most createArea and some createObjectGroup calls in random map scripts. 2017-10-15 17:53:12 +00:00
aegean_sea.js Cleanup most createArea and some createObjectGroup calls in random map scripts. 2017-10-15 17:53:12 +00:00
aegean_sea.json Remove triple X comment pollution from maps. 2016-04-05 11:53:05 +00:00
african_plains.js Cleanup most createArea and some createObjectGroup calls in random map scripts. 2017-10-15 17:53:12 +00:00
african_plains.json Bump version number to Alpha 23. 2017-07-29 16:36:55 +00:00
alpine_lakes.js Cleanup most createArea and some createObjectGroup calls in random map scripts. 2017-10-15 17:53:12 +00:00
alpine_lakes.json Remove triple X comment pollution from maps. 2016-04-05 11:53:05 +00:00
alpine_valley.js Cleanup most createArea and some createObjectGroup calls in random map scripts. 2017-10-15 17:53:12 +00:00
alpine_valley.json Remove triple X comment pollution from maps. 2016-04-05 11:53:05 +00:00
amazon.hmap Move the 12MB heightmap data from the JS code of _kali's 9 alpha 21 realworld maps to separate JSON files (following the new JSON function in 871ed04521). 2017-09-10 15:54:26 +00:00
amazon.js Delete an unneeded initForestFloor found by leper in 9e931b6fbe. 2017-10-10 10:32:02 +00:00
amazon.json Bump version number to Alpha 22. 2016-11-11 01:46:12 +00:00
ambush.js Delete an unneeded initForestFloor found by leper in 9e931b6fbe. 2017-10-10 10:32:02 +00:00
ambush.json Select the biome of the random map in the gamesetup. 2017-09-05 12:57:22 +00:00
anatolian_plateau.js Cleanup most createArea and some createObjectGroup calls in random map scripts. 2017-10-15 17:53:12 +00:00
anatolian_plateau.json Remove triple X comment pollution from maps. 2016-04-05 11:53:05 +00:00
archipelago.js Cleanup most createArea and some createObjectGroup calls in random map scripts. 2017-10-15 17:53:12 +00:00
archipelago.json Allow selecting the biome on all maps that support the random biome system, refs D852. 2017-09-05 16:16:25 +00:00
arctic_summer.js Remove about 360 unused variables in random map scripts, refs #4805. 2017-10-14 14:25:53 +00:00
arctic_summer.json Bump version number to Alpha 23. 2017-07-29 16:36:55 +00:00
ardennes_forest.js Cleanup most createArea and some createObjectGroup calls in random map scripts. 2017-10-15 17:53:12 +00:00
ardennes_forest.json Remove unused author and version tag from ardennes forest. 2016-04-05 11:22:16 +00:00
atlas_mountains.js Cleanup most createArea and some createObjectGroup calls in random map scripts. 2017-10-15 17:53:12 +00:00
atlas_mountains.json Remove triple X comment pollution from maps. 2016-04-05 11:53:05 +00:00
bahrain.hmap Move the 12MB heightmap data from the JS code of _kali's 9 alpha 21 realworld maps to separate JSON files (following the new JSON function in 871ed04521). 2017-09-10 15:54:26 +00:00
bahrain.js Delete an unneeded initForestFloor found by leper in 9e931b6fbe. 2017-10-10 10:32:02 +00:00
bahrain.json Bump version number to Alpha 22. 2016-11-11 01:46:12 +00:00
belgian_uplands.js Remove about 360 unused variables in random map scripts, refs #4805. 2017-10-14 14:25:53 +00:00
belgian_uplands.json Remove triple X comment pollution from maps. 2016-04-05 11:53:05 +00:00
blank.js Remove 1400 useless random map script comments. 2017-09-09 14:41:50 +00:00
botswanan_haven.js Remove about 360 unused variables in random map scripts, refs #4805. 2017-10-14 14:25:53 +00:00
botswanan_haven.json Bump version number to Alpha 23. 2017-07-29 16:36:55 +00:00
caledonian_meadows.js Remove 1400 useless random map script comments. 2017-09-09 14:41:50 +00:00
caledonian_meadows.json String changes, based on feedback from translators. 2017-06-03 16:30:18 +00:00
cantabrian_highlands.js Cleanup most createArea and some createObjectGroup calls in random map scripts. 2017-10-15 17:53:12 +00:00
cantabrian_highlands.json Remove triple X comment pollution from maps. 2016-04-05 11:53:05 +00:00
canyon.js Cleanup most createArea and some createObjectGroup calls in random map scripts. 2017-10-15 17:53:12 +00:00
canyon.json Allow selecting the biome on all maps that support the random biome system, refs D852. 2017-09-05 16:16:25 +00:00
continent.js Cleanup most createArea and some createObjectGroup calls in random map scripts. 2017-10-15 17:53:12 +00:00
continent.json Allow selecting the biome on all maps that support the random biome system, refs D852. 2017-09-05 16:16:25 +00:00
corinthian_isthmus.js Cleanup most createArea and some createObjectGroup calls in random map scripts. 2017-10-15 17:53:12 +00:00
corinthian_isthmus.json Remove triple X comment pollution from maps. 2016-04-05 11:53:05 +00:00
corsica.js Corsica & Sardinia cleanup. 2017-10-14 21:04:29 +00:00
corsica.json Remove triple X comment pollution from maps. 2016-04-05 11:53:05 +00:00
cycladic_archipelago.js Cleanup most createArea and some createObjectGroup calls in random map scripts. 2017-10-15 17:53:12 +00:00
cycladic_archipelago.json Remove triple X comment pollution from maps. 2016-04-05 11:53:05 +00:00
danubius.js Remove about 360 unused variables in random map scripts, refs #4805. 2017-10-14 14:25:53 +00:00
danubius.json Bump version number to Alpha 23. 2017-07-29 16:36:55 +00:00
danubius_triggers.js Move formations/ templates to special/formations/. 2017-09-30 06:51:56 +00:00
deep_forest.js Remove about 360 unused variables in random map scripts, refs #4805. 2017-10-14 14:25:53 +00:00
deep_forest.json Remove triple X comment pollution from maps. 2016-04-05 11:53:05 +00:00
empire.js Delete an unneeded initForestFloor found by leper in 9e931b6fbe. 2017-10-10 10:32:02 +00:00
empire.json Allow selecting the biome on all maps that support the random biome system, refs D852. 2017-09-05 16:16:25 +00:00
english_channel.js Cleanup most createArea and some createObjectGroup calls in random map scripts. 2017-10-15 17:53:12 +00:00
english_channel.json Remove triple X comment pollution from maps. 2016-04-05 11:53:05 +00:00
extinct_volcano.js Cleanup most createArea and some createObjectGroup calls in random map scripts. 2017-10-15 17:53:12 +00:00
extinct_volcano.json Bump version number to Alpha 23. 2017-07-29 16:36:55 +00:00
extinct_volcano_triggers.js Remove 1400 useless random map script comments. 2017-09-09 14:41:50 +00:00
flood.js Cleanup most createArea and some createObjectGroup calls in random map scripts. 2017-10-15 17:53:12 +00:00
flood.json Select the biome of the random map in the gamesetup. 2017-09-05 12:57:22 +00:00
fortress.js Cleanup most createArea and some createObjectGroup calls in random map scripts. 2017-10-15 17:53:12 +00:00
fortress.json Remove triple X comment pollution from maps. 2016-04-05 11:53:05 +00:00
frontier.js Delete an unneeded initForestFloor found by leper in 9e931b6fbe. 2017-10-10 10:32:02 +00:00
frontier.json Allow selecting the biome on all maps that support the random biome system, refs D852. 2017-09-05 16:16:25 +00:00
gear.js Cleanup most createArea and some createObjectGroup calls in random map scripts. 2017-10-15 17:53:12 +00:00
gear.json Allow selecting the biome on all maps that support the random biome system, refs D852. 2017-09-05 16:16:25 +00:00
guadalquivir_river.js Cleanup most createArea and some createObjectGroup calls in random map scripts. 2017-10-15 17:53:12 +00:00
guadalquivir_river.json Remove triple X comment pollution from maps. 2016-04-05 11:53:05 +00:00
gulf_of_bothnia.js Cleanup most createArea and some createObjectGroup calls in random map scripts. 2017-10-15 17:53:12 +00:00
gulf_of_bothnia.json Remove triple X comment pollution from maps. 2016-04-05 11:53:05 +00:00
harbor.js Cleanup most createArea and some createObjectGroup calls in random map scripts. 2017-10-15 17:53:12 +00:00
harbor.json Allow selecting the biome on all maps that support the random biome system, refs D852. 2017-09-05 16:16:25 +00:00
hells_pass.js Remove about 360 unused variables in random map scripts, refs #4805. 2017-10-14 14:25:53 +00:00
hells_pass.json Allow selecting the biome on all maps that support the random biome system, refs D852. 2017-09-05 16:16:25 +00:00
howe_sound.hmap Move the 12MB heightmap data from the JS code of _kali's 9 alpha 21 realworld maps to separate JSON files (following the new JSON function in 871ed04521). 2017-09-10 15:54:26 +00:00
howe_sound.js Delete an unneeded initForestFloor found by leper in 9e931b6fbe. 2017-10-10 10:32:02 +00:00
howe_sound.json Bump version number to Alpha 22. 2016-11-11 01:46:12 +00:00
hyrcanian_shores.js Cleanup most createArea and some createObjectGroup calls in random map scripts. 2017-10-15 17:53:12 +00:00
hyrcanian_shores.json Remove triple X comment pollution from maps. 2016-04-05 11:53:05 +00:00
india.js Unify 34 copies of the civic center tile class setting of random map scripts. 2017-09-15 03:52:50 +00:00
india.json Bump version number to Alpha 23. 2017-07-29 16:36:55 +00:00
island_stronghold.js Cleanup most createArea and some createObjectGroup calls in random map scripts. 2017-10-15 17:53:12 +00:00
island_stronghold.json Select the biome of the random map in the gamesetup. 2017-09-05 12:57:22 +00:00
islands.js Cleanup most createArea and some createObjectGroup calls in random map scripts. 2017-10-15 17:53:12 +00:00
islands.json Allow selecting the biome on all maps that support the random biome system, refs D852. 2017-09-05 16:16:25 +00:00
kerala.js Cleanup most createArea and some createObjectGroup calls in random map scripts. 2017-10-15 17:53:12 +00:00
kerala.json Remove triple X comment pollution from maps. 2016-04-05 11:53:05 +00:00
lake.js Cleanup most createArea and some createObjectGroup calls in random map scripts. 2017-10-15 17:53:12 +00:00
lake.json Allow selecting the biome on all maps that support the random biome system, refs D852. 2017-09-05 16:16:25 +00:00
latium.js Remove about 360 unused variables in random map scripts, refs #4805. 2017-10-14 14:25:53 +00:00
latium.json Remove triple X comment pollution from maps. 2016-04-05 11:53:05 +00:00
lions_den.js Fix collisions of random forests and mines with starting resources on Cycladic Archipelago and the Lion's Den. Refs #4600. 2017-10-13 14:56:44 +00:00
lions_den.json Allow selecting the biome on all maps that support the random biome system, refs D852. 2017-09-05 16:16:25 +00:00
lorraine_plain.js Cleanup most createArea and some createObjectGroup calls in random map scripts. 2017-10-15 17:53:12 +00:00
lorraine_plain.json Remove triple X comment pollution from maps. 2016-04-05 11:53:05 +00:00
mainland.js Cleanup most createArea and some createObjectGroup calls in random map scripts. 2017-10-15 17:53:12 +00:00
mainland.json Allow selecting the biome on all maps that support the random biome system, refs D852. 2017-09-05 16:16:25 +00:00
marmara.hmap Move the 12MB heightmap data from the JS code of _kali's 9 alpha 21 realworld maps to separate JSON files (following the new JSON function in 871ed04521). 2017-09-10 15:54:26 +00:00
marmara.js Delete an unneeded initForestFloor found by leper in 9e931b6fbe. 2017-10-10 10:32:02 +00:00
marmara.json Bump version number to Alpha 22. 2016-11-11 01:46:12 +00:00
mediterranean.hmap Move the 12MB heightmap data from the JS code of _kali's 9 alpha 21 realworld maps to separate JSON files (following the new JSON function in 871ed04521). 2017-09-10 15:54:26 +00:00
mediterranean.js Delete an unneeded initForestFloor found by leper in 9e931b6fbe. 2017-10-10 10:32:02 +00:00
mediterranean.json Bump version number to Alpha 22. 2016-11-11 01:46:12 +00:00
migration.js Cleanup most createArea and some createObjectGroup calls in random map scripts. 2017-10-15 17:53:12 +00:00
migration.json Allow selecting the biome on all maps that support the random biome system, refs D852. 2017-09-05 16:16:25 +00:00
neareastern_badlands.js Cleanup most createArea and some createObjectGroup calls in random map scripts. 2017-10-15 17:53:12 +00:00
neareastern_badlands.json Remove triple X comment pollution from maps. 2016-04-05 11:53:05 +00:00
new_rms_test.js Unify 36 copies of the radial playerplacement loop of random mapscripts. 2017-09-09 19:12:28 +00:00
new_rms_test.json Remove triple X comment pollution from maps. 2016-04-05 11:53:05 +00:00
ngorongoro.hmap Move the 12MB heightmap data from the JS code of _kali's 9 alpha 21 realworld maps to separate JSON files (following the new JSON function in 871ed04521). 2017-09-10 15:54:26 +00:00
ngorongoro.js Delete an unneeded initForestFloor found by leper in 9e931b6fbe. 2017-10-10 10:32:02 +00:00
ngorongoro.json Bump version number to Alpha 22. 2016-11-11 01:46:12 +00:00
northern_lights.js Cleanup most createArea and some createObjectGroup calls in random map scripts. 2017-10-15 17:53:12 +00:00
northern_lights.json Remove triple X comment pollution from maps. 2016-04-05 11:53:05 +00:00
oasis.js Cleanup most createArea and some createObjectGroup calls in random map scripts. 2017-10-15 17:53:12 +00:00
oasis.json Remove triple X comment pollution from maps. 2016-04-05 11:53:05 +00:00
persian_highlands.js Cleanup most createArea and some createObjectGroup calls in random map scripts. 2017-10-15 17:53:12 +00:00
persian_highlands.json Remove triple X comment pollution from maps. 2016-04-05 11:53:05 +00:00
phoenician_levant.js Cleanup most createArea and some createObjectGroup calls in random map scripts. 2017-10-15 17:53:12 +00:00
phoenician_levant.json Fixes a bug introduced in 0bf90da597 that prevents entity placement on some rectangular maps e.g. Phoenician Levant and Corsica vs Sardinia. Also fixes a typo in the Phoenician Levant .js and .json files. Fixes #4012 2016-06-11 11:16:07 +00:00
polar_sea.js Cleanup most createArea and some createObjectGroup calls in random map scripts. 2017-10-15 17:53:12 +00:00
polar_sea.json Bump version number to Alpha 23. 2017-07-29 16:36:55 +00:00
polar_sea_triggers.js Improve wolve target-finder performance 2017-09-06 08:59:56 +00:00
pompeii.hmap Move the 12MB heightmap data from the JS code of _kali's 9 alpha 21 realworld maps to separate JSON files (following the new JSON function in 871ed04521). 2017-09-10 15:54:26 +00:00
pompeii.js Delete an unneeded initForestFloor found by leper in 9e931b6fbe. 2017-10-10 10:32:02 +00:00
pompeii.json Bump version number to Alpha 22. 2016-11-11 01:46:12 +00:00
pyrenean_sierra.js Cleanup most createArea and some createObjectGroup calls in random map scripts. 2017-10-15 17:53:12 +00:00
pyrenean_sierra.json Remove triple X comment pollution from maps. 2016-04-05 11:53:05 +00:00
ratumacos.hmap Move the 12MB heightmap data from the JS code of _kali's 9 alpha 21 realworld maps to separate JSON files (following the new JSON function in 871ed04521). 2017-09-10 15:54:26 +00:00
ratumacos.js Delete an unneeded initForestFloor found by leper in 9e931b6fbe. 2017-10-10 10:32:02 +00:00
ratumacos.json Rename the map Rouen to Ratumacos and make it circular. 2017-05-06 01:20:49 +00:00
red_sea.hmap Move the 12MB heightmap data from the JS code of _kali's 9 alpha 21 realworld maps to separate JSON files (following the new JSON function in 871ed04521). 2017-09-10 15:54:26 +00:00
red_sea.js Delete an unneeded initForestFloor found by leper in 9e931b6fbe. 2017-10-10 10:32:02 +00:00
red_sea.json Bump version number to Alpha 22. 2016-11-11 01:46:12 +00:00
rhine_marshlands.js Cleanup most createArea and some createObjectGroup calls in random map scripts. 2017-10-15 17:53:12 +00:00
rhine_marshlands.json Remove triple X comment pollution from maps. 2016-04-05 11:53:05 +00:00
river_archipelago.js Cleanup most createArea and some createObjectGroup calls in random map scripts. 2017-10-15 17:53:12 +00:00
river_archipelago.json Remove unneeded waterheight init loop from River Archipelago (refs #4354, D467). 2017-10-06 18:49:09 +00:00
rivers.js Cleanup most createArea and some createObjectGroup calls in random map scripts. 2017-10-15 17:53:12 +00:00
rivers.json Allow selecting the biome on all maps that support the random biome system, refs D852. 2017-09-05 16:16:25 +00:00
saharan_oases.js Cleanup most createArea and some createObjectGroup calls in random map scripts. 2017-10-15 17:53:12 +00:00
saharan_oases.json Remove triple X comment pollution from maps. 2016-04-05 11:53:05 +00:00
sahel.js Cleanup most createArea and some createObjectGroup calls in random map scripts. 2017-10-15 17:53:12 +00:00
sahel.json Remove triple X comment pollution from maps. 2016-04-05 11:53:05 +00:00
sahel_watering_holes.js Cleanup most createArea and some createObjectGroup calls in random map scripts. 2017-10-15 17:53:12 +00:00
sahel_watering_holes.json Remove triple X comment pollution from maps. 2016-04-05 11:53:05 +00:00
schwarzwald.js Cleanup most createArea and some createObjectGroup calls in random map scripts. 2017-10-15 17:53:12 +00:00
schwarzwald.json Remove triple X comment pollution from maps. 2016-04-05 11:53:05 +00:00
snowflake_searocks.js Cleanup most createArea and some createObjectGroup calls in random map scripts. 2017-10-15 17:53:12 +00:00
snowflake_searocks.json Allow selecting the biome on all maps that support the random biome system, refs D852. 2017-09-05 16:16:25 +00:00
stronghold.js Delete an unneeded initForestFloor found by leper in 9e931b6fbe. 2017-10-10 10:32:02 +00:00
stronghold.json Allow selecting the biome on all maps that support the random biome system, refs D852. 2017-09-05 16:16:25 +00:00
survivalofthefittest.js Cleanup most createArea and some createObjectGroup calls in random map scripts. 2017-10-15 17:53:12 +00:00
survivalofthefittest.json Allow selecting the biome on all maps that support the random biome system, refs D852. 2017-09-05 16:16:25 +00:00
survivalofthefittest_triggers.js Victory and defeat reason strings. 2017-08-08 11:32:00 +00:00
syria.js Cleanup most createArea and some createObjectGroup calls in random map scripts. 2017-10-15 17:53:12 +00:00
syria.json Remove triple X comment pollution from maps. 2016-04-05 11:53:05 +00:00
the_nile.js Cleanup most createArea and some createObjectGroup calls in random map scripts. 2017-10-15 17:53:12 +00:00
the_nile.json Remove triple X comment pollution from maps. 2016-04-05 11:53:05 +00:00
unknown.js Fix division by zero in 0d0bc32736 and 25682da568 for the gulf map layout with only one player. 2017-09-23 13:28:43 +00:00
unknown.json Allow selecting the biome on all maps that support the random biome system, refs D852. 2017-09-05 16:16:25 +00:00
unknown_land.js Fix division by zero in 0d0bc32736 and 25682da568 for the gulf map layout with only one player. 2017-09-23 13:28:43 +00:00
unknown_land.json Allow selecting the biome on all maps that support the random biome system, refs D852. 2017-09-05 16:16:25 +00:00
unknown_nomad.js Fix rmgen2 SimpleObject and RandomObject ignoring the 3 invalid map border tiles. 2017-10-11 01:48:12 +00:00
unknown_nomad.json Allow selecting the biome on all maps that support the random biome system, refs D852. 2017-09-05 16:16:25 +00:00
volcanic_lands.js Cleanup most createArea and some createObjectGroup calls in random map scripts. 2017-10-15 17:53:12 +00:00
volcanic_lands.json Remove triple X comment pollution from maps. 2016-04-05 11:53:05 +00:00
wall_demo.js Remove about 360 unused variables in random map scripts, refs #4805. 2017-10-14 14:25:53 +00:00
wall_demo.json Fix lineendings, two missing semicolons and a string fix. 2017-05-01 05:08:00 +00:00
wall_demo_triggers.js Reveal the map on the wall demo map (so that it isn't entirely nor partially invisible independent of the selected gamemode and ownership). 2017-04-23 19:32:34 +00:00
wild_lake.js Remove biome constants, so that mods can remove biomes without triggering reference errors, refs 871ed04521. 2017-09-08 02:49:49 +00:00
wild_lake.json Allow selecting the biome on all maps that support the random biome system, refs D852. 2017-09-05 16:16:25 +00:00