Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/maps/random/gulf_of_bothnia.js
RMS.LoadLibrary("rmgen"); | RMS.LoadLibrary("rmgen"); | ||||
TILE_CENTERED_HEIGHT_MAP = true; | TILE_CENTERED_HEIGHT_MAP = true; | ||||
var random_terrain = randInt(1,3); | var random_terrain = randIntInclusive(1, 3); | ||||
if (random_terrain == 1) | if (random_terrain == 1) | ||||
{ | { | ||||
setFogThickness(0.26); | setFogThickness(0.26); | ||||
setFogFactor(0.4); | setFogFactor(0.4); | ||||
setPPEffect("hdr"); | setPPEffect("hdr"); | ||||
setPPSaturation(0.48); | setPPSaturation(0.48); | ||||
setPPContrast(0.53); | setPPContrast(0.53); | ||||
▲ Show 20 Lines • Show All 435 Lines • ▼ Show 20 Lines | |||||
// create fruits | // create fruits | ||||
createFood | createFood | ||||
( | ( | ||||
[ | [ | ||||
[new SimpleObject(oBerryBush, 5,7, 0,4)] | [new SimpleObject(oBerryBush, 5,7, 0,4)] | ||||
], | ], | ||||
[ | [ | ||||
randInt(1, 4) * numPlayers + 2 | randIntInclusive(1, 4) * numPlayers + 2 | ||||
], | ], | ||||
avoidClasses(clWater, 3, clForest, 0, clPlayer, 20, clHill, 1, clFood, 10) | avoidClasses(clWater, 3, clForest, 0, clPlayer, 20, clHill, 1, clFood, 10) | ||||
); | ); | ||||
if (random_terrain !== 3) | if (random_terrain !== 3) | ||||
{ | { | ||||
// create fish | // create fish | ||||
createFood | createFood | ||||
Show All 31 Lines |
Wildfire Games · Phabricator