Ticket #1576: wall_builder.js2012-7-29.patch
File wall_builder.js2012-7-29.patch, 1.2 KB (added by , 12 years ago) |
---|
-
data/mods/public/maps/random/rmgen/wall_builder.js
126 126 wallStyles[style]["wallMedium"] = new WallElement("wall", "structures/" + style + "_wall_medium", 0*PI, 4*wallScaleByType[style]); 127 127 wallStyles[style]["wallLong"] = new WallElement("wallLong", "structures/" + style + "_wall_long", 0*PI, 6*wallScaleByType[style]); 128 128 // Gate and entrance wall elements 129 if (style == "cart") 130 var gateWidth = 3.5*wallScaleByType[style]; 131 else if (style == "brit" || style == "celt" || style == "gaul") 132 var gateWidth = 4*wallScaleByType[style]; 133 else 134 var gateWidth = 6*wallScaleByType[style]; 129 var gateWidth = 6*wallScaleByType[style]; 135 130 wallStyles[style]["gate"] = new WallElement("gate", "structures/" + style + "_wall_gate", 0*PI, gateWidth); 136 131 wallStyles[style]["entry"] = new WallElement("entry", undefined, 0*PI, gateWidth); 137 132 wallStyles[style]["entryTower"] = new WallElement("entryTower", "structures/" + civ + "_defense_tower", PI, gateWidth, -4*wallScaleByType[style]);