Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/maps/random/lake.js
Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | |||||
var clBaseResource = g_Map.createTileClass(); | var clBaseResource = g_Map.createTileClass(); | ||||
var [playerIDs, playerPosition] = playerPlacementCircle(fractionToTiles(0.35)); | var [playerIDs, playerPosition] = playerPlacementCircle(fractionToTiles(0.35)); | ||||
g_Map.log("Preventing water in player territory"); | g_Map.log("Preventing water in player territory"); | ||||
for (let i = 0; i < numPlayers; ++i) | for (let i = 0; i < numPlayers; ++i) | ||||
addCivicCenterAreaToClass(playerPosition[i], clPlayer); | addCivicCenterAreaToClass(playerPosition[i], clPlayer); | ||||
g_Map.log("Creating the lake...") | g_Map.log("Creating the lake..."); | ||||
createArea( | createArea( | ||||
new ChainPlacer( | new ChainPlacer( | ||||
2, | 2, | ||||
Math.floor(scaleByMapSize(5, 16)), | Math.floor(scaleByMapSize(5, 16)), | ||||
Math.floor(scaleByMapSize(35, 200)), | Math.floor(scaleByMapSize(35, 200)), | ||||
Infinity, | Infinity, | ||||
mapCenter, | mapCenter, | ||||
0, | 0, | ||||
▲ Show 20 Lines • Show All 176 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator