Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/maps/random/rmgen/library.js
Show All 20 Lines | |||||
const SEA_LEVEL = 20.0; | const SEA_LEVEL = 20.0; | ||||
const HEIGHT_UNITS_PER_METRE = 92; | const HEIGHT_UNITS_PER_METRE = 92; | ||||
/** | /** | ||||
* Number of impassable, unexplorable tiles at the map border. | * Number of impassable, unexplorable tiles at the map border. | ||||
*/ | */ | ||||
const MAP_BORDER_WIDTH = 3; | const MAP_BORDER_WIDTH = 3; | ||||
const g_DamageTypes = new DamageTypes(); | |||||
/** | /** | ||||
* Constants needed for heightmap_manipulation.js | * Constants needed for heightmap_manipulation.js | ||||
*/ | */ | ||||
const MAX_HEIGHT_RANGE = 0xFFFF / HEIGHT_UNITS_PER_METRE; // Engine limit, Roughly 700 meters | const MAX_HEIGHT_RANGE = 0xFFFF / HEIGHT_UNITS_PER_METRE; // Engine limit, Roughly 700 meters | ||||
const MIN_HEIGHT = - SEA_LEVEL; | const MIN_HEIGHT = - SEA_LEVEL; | ||||
/** | /** | ||||
* Length of one tile of the terrain grid in metres. | * Length of one tile of the terrain grid in metres. | ||||
▲ Show 20 Lines • Show All 299 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator