Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/maps/random/phoenician_levant.js
Show First 20 Lines • Show All 187 Lines • ▼ Show 20 Lines | [ | ||||
new TileClassUnPainter(clWater) | new TileClassUnPainter(clWater) | ||||
], | ], | ||||
[stayClasses (clWater, 8)], | [stayClasses (clWater, 8)], | ||||
1, | 1, | ||||
100); | 100); | ||||
g_Map.log("Creating cyprus mines"); | g_Map.log("Creating cyprus mines"); | ||||
var mines = [ | var mines = [ | ||||
new SimpleGroup([new SimpleObject(oStoneSmall, 0, 2, 0, 4), new SimpleObject(oStoneLarge, 1, 1, 0, 4)], true, clRock), | new SimpleGroup([new SimpleObject(oStoneSmall, 0, 2, 0, 4, 0, 2 * Math.PI, 1), new SimpleObject(oStoneLarge, 1, 1, 0, 4, 0, 2 * Math.PI, 4)], true, clRock), | ||||
new SimpleGroup([new SimpleObject(oMetalLarge, 1, 1, 0, 4)], true, clMetal), | new SimpleGroup([new SimpleObject(oMetalLarge, 1, 1, 0, 4)], true, clMetal), | ||||
new SimpleGroup([new SimpleObject(oStoneSmall, 2, 5, 1, 3)], true, clRock) | new SimpleGroup([new SimpleObject(oStoneSmall, 2, 5, 1, 3)], true, clRock) | ||||
]; | ]; | ||||
for (let mine of mines) | for (let mine of mines) | ||||
createObjectGroups( | createObjectGroups( | ||||
mine, | mine, | ||||
0, | 0, | ||||
[ | [ | ||||
stayClasses(clIsland, 9), | stayClasses(clIsland, 9), | ||||
avoidClasses(clForest, 1, clRock, 8, clMetal, 8) | avoidClasses(clForest, 1, clRock, 8, clMetal, 8) | ||||
], | ], | ||||
scaleByMapSize(4, 16)); | scaleByMapSize(4, 16)); | ||||
g_Map.log("Creating stone mines"); | g_Map.log("Creating stone mines"); | ||||
var group = new SimpleGroup([new SimpleObject(oStoneSmall, 0,2, 0,4), new SimpleObject(oStoneLarge, 1,1, 0,4)], true, clRock); | var group = new SimpleGroup([new SimpleObject(oStoneSmall, 0, 2, 0, 4, 0, 2 * Math.PI, 1), new SimpleObject(oStoneLarge, 1, 1, 0, 4, 0, 2 * Math.PI, 4)], true, clRock); | ||||
createObjectGroupsDeprecated(group, 0, | createObjectGroupsDeprecated(group, 0, | ||||
avoidClasses(clForest, 1, clPlayer, 20, clRock, 10, clWater, 3, clHill, 1), | avoidClasses(clForest, 1, clPlayer, 20, clRock, 10, clWater, 3, clHill, 1), | ||||
scaleByMapSize(4,16), 100 | scaleByMapSize(4,16), 100 | ||||
); | ); | ||||
g_Map.log("Creating small stone quarries"); | g_Map.log("Creating small stone quarries"); | ||||
group = new SimpleGroup([new SimpleObject(oStoneSmall, 2,5, 1,3)], true, clRock); | group = new SimpleGroup([new SimpleObject(oStoneSmall, 2,5, 1,3)], true, clRock); | ||||
createObjectGroupsDeprecated(group, 0, | createObjectGroupsDeprecated(group, 0, | ||||
▲ Show 20 Lines • Show All 113 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator