Ticket #1855: addMauryanWallStyleToRmgen.patch
File addMauryanWallStyleToRmgen.patch, 3.5 KB (added by , 11 years ago) |
---|
-
binaries/data/mods/public/maps/random/rmgen/wall_builder.js
108 108 var wallStyles = {}; 109 109 110 110 // Generic civ dependent wall style definition. "rome_siege" needs some tweek... 111 var wallScaleByType = {"athen" : 1.5, "brit" : 1.5, "cart" : 1.8, "celt" : 1.5, "gaul" : 1.5, "hele" : 1.5, "iber" : 1.5, "mace" : 1.5, " pers" : 1.5, "rome" : 1.5, "spart" : 1.5, "rome_siege" : 1.5};111 var wallScaleByType = {"athen" : 1.5, "brit" : 1.5, "cart" : 1.8, "celt" : 1.5, "gaul" : 1.5, "hele" : 1.5, "iber" : 1.5, "mace" : 1.5, "maur" : 1.5, "pers" : 1.5, "rome" : 1.5, "spart" : 1.5, "rome_siege" : 1.5}; 112 112 for (var style in wallScaleByType) 113 113 { 114 114 var civ = style; … … 158 158 wallStyles["gaul"]["wallFort"] = new WallElement("wallFort", "structures/gaul_fortress", PI, 4.2, 1.5); 159 159 wallStyles["hele"]["wallFort"] = new WallElement("wallFort", "structures/hele_fortress", 2*PI/2 /* PI/2 */, 5.1 /* 5.6 */, 1.9 /* 1.9 */); 160 160 wallStyles["iber"]["wallFort"] = new WallElement("wallFort", "structures/iber_fortress", PI, 5, 0.2); 161 wallStyles["maur"]["wallFort"] = new WallElement("wallFort", "structures/maur_fortress", PI, 5.5); 161 162 wallStyles["mace"]["wallFort"] = new WallElement("wallFort", "structures/mace_fortress", 2*PI/2 /* PI/2 */, 5.1 /* 5.6 */, 1.9 /* 1.9 */); 162 163 wallStyles["pers"]["wallFort"] = new WallElement("wallFort", "structures/pers_fortress", PI, 5.6/*5.5*/, 1.9/*1.7*/); 163 164 wallStyles["rome"]["wallFort"] = new WallElement("wallFort", "structures/rome_fortress", PI, 6.3, 2.1); -
binaries/data/mods/public/maps/random/wall_demo.js
57 57 58 58 // General wall placement setup 59 59 const distToMapBorder = 5; 60 const distToOtherWalls = 5;60 const distToOtherWalls = 10; 61 61 var buildableMapSize = mapSize - 2 * distToMapBorder; 62 62 var actualX = distToMapBorder; 63 63 var actualY = distToMapBorder; 64 64 // Wall styles are chosen by strings so the civ strings got by g_MapSettings.PlayerData[playerId - 1].Civ can be used 65 65 // Other styles may be present as well but besides the civ styles only 'palisades' includes all wall element types (yet) 66 const wallStyleList = ["athen", "brit", "cart", "celt", "gaul", "hele", "iber", "ma ce", "pers", "rome", "spart", "rome_siege", "palisades"];66 const wallStyleList = ["athen", "brit", "cart", "celt", "gaul", "hele", "iber", "maur", "mace", "pers", "rome", "spart", "rome_siege", "palisades"]; 67 67 68 68 69 69 //////////////////////////////////////// -
binaries/data/mods/public/maps/random/wall_demo.json
2 2 "settings" : { 3 3 "Name" : "Wall Demo", 4 4 "Script" : "wall_demo.js", 5 "Description" : "A demonstration of wall placement methods/code in random maps. Large map size is recommended.",5 "Description" : "A demonstration of wall placement methods/code in random maps. Very Large map size is recommended.", 6 6 "BaseTerrain" : ["grass1"], 7 7 "BaseHeight" : 0, 8 8 "Keywords": ["demo"],