Ticket #3988: remove_BUILD_ANGlE.diff

File remove_BUILD_ANGlE.diff, 48.4 KB (added by FeXoR, 8 years ago)
  • binaries/data/mods/public/maps/random/aegean_sea.js

     
    4949// terrain + entity (for painting)
    5050const pForest = [tForestFloor, tForestFloor + TERRAIN_SEPARATOR + oCarob, tForestFloor + TERRAIN_SEPARATOR + oDatePalm, tForestFloor + TERRAIN_SEPARATOR + oSDatePalm, tForestFloor];
    5151
    52 const BUILDING_ANGlE = -PI/4;
    53 
    5452log("Initializing map...");
    5553
    5654InitMap();
     
    135133    createArea(placer, painter, null);
    136134   
    137135    // create starting units
    138     placeCivDefaultEntities(fx, fz, id, BUILDING_ANGlE);
     136    placeCivDefaultEntities(fx, fz, id);
    139137   
    140138    // create animals
    141139    for (var j = 0; j < 2; ++j)
  • binaries/data/mods/public/maps/random/alpine_lakes.js

     
    8787
    8888//other constants
    8989const pForest = [tForestFloor + TERRAIN_SEPARATOR + oPine, tForestFloor];
    90 const BUILDING_ANGlE = -PI/4;
    9190
    92 // initialize map
    9391log("Initializing map...");
    9492
    9593InitMap();
     
    170168    createArea(placer, painter, null);
    171169   
    172170    // create starting units
    173     placeCivDefaultEntities(fx, fz, id, BUILDING_ANGlE);
     171    placeCivDefaultEntities(fx, fz, id);
    174172   
    175173    // create animals
    176174    for (var j = 0; j < 2; ++j)
  • binaries/data/mods/public/maps/random/alpine_valley.js

     
    7474
    7575//other constants
    7676const pForest = [tForestFloor + TERRAIN_SEPARATOR + oPine, tForestFloor];
    77 const BUILDING_ANGlE = -PI/4;
    7877
    79 // initialize map
    8078log("Initializing map...");
    8179
    8280InitMap();
     
    157155    createArea(placer, painter, null);
    158156   
    159157    // create starting units
    160     placeCivDefaultEntities(fx, fz, id, BUILDING_ANGlE);
     158    placeCivDefaultEntities(fx, fz, id);
    161159   
    162160    // create animals
    163161    for (var j = 0; j < 2; ++j)
  • binaries/data/mods/public/maps/random/anatolian_plateau.js

     
    3333const aBushSmall = "actor|props/flora/bush_medit_sm.xml";
    3434
    3535const pForest = [tForestFloor + TERRAIN_SEPARATOR + oPoplar, tForestFloor];
    36 const BUILDING_ANGlE = -PI/4;
    3736
    38 // initialize map
    39 
    4037log("Initializing map...");
    4138
    4239InitMap();
     
    107104    createArea(placer, painter, null);
    108105   
    109106    // create starting units
    110     placeCivDefaultEntities(fx, fz, id, BUILDING_ANGlE);
     107    placeCivDefaultEntities(fx, fz, id);
    111108   
    112109    // create animals
    113110    for (var j = 0; j < 2; ++j)
  • binaries/data/mods/public/maps/random/archipelago.js

     
    4949
    5050const pForest1 = [tForestFloor2 + TERRAIN_SEPARATOR + oTree1, tForestFloor2 + TERRAIN_SEPARATOR + oTree2, tForestFloor2];
    5151const pForest2 = [tForestFloor1 + TERRAIN_SEPARATOR + oTree4, tForestFloor1 + TERRAIN_SEPARATOR + oTree5, tForestFloor1];
    52 const BUILDING_ANGlE = -PI/4;
    5352
    54 // initialize map
    55 
    5653log("Initializing map...");
    5754
    5855InitMap();
     
    127124    createArea(placer, [terrainPainter, elevationPainter, paintClass(clPlayer)], null);
    128125   
    129126    // create starting units
    130     placeCivDefaultEntities(fx, fz, id, BUILDING_ANGlE, {'iberWall' : 'towers'});
     127    placeCivDefaultEntities(fx, fz, id, undefined, {'iberWall' : 'towers'});
    131128   
    132129    // create animals
    133130    for (var j = 0; j < 2; ++j)
  • binaries/data/mods/public/maps/random/ardennes_forest.js

     
    11RMS.LoadLibrary("rmgen");
    22
    3 const BUILDING_ANGlE = -PI/4;
    4 
    5 // initialize map
    6 
    73log("Initializing map...");
    84
    95InitMap();
     
    177173    var iz = round(fz);
    178174
    179175    // create starting units
    180     placeCivDefaultEntities(fx, fz, id, BUILDING_ANGlE);
     176    placeCivDefaultEntities(fx, fz, id);
    181177   
    182178    var citySize = 250
    183179
  • binaries/data/mods/public/maps/random/atlas_mountains.js

     
    4646const pForest1 = [tForestFloor + TERRAIN_SEPARATOR + oCarob, tForestFloor];
    4747const pForest2 = [tForestFloor + TERRAIN_SEPARATOR + oAleppoPine, tForestFloor];
    4848
    49 const BUILDING_ANGlE = -PI/4;
    50 
    51 // initialize map
    52 
    5349log("Initializing map...");
    5450
    5551InitMap();
     
    121117    createArea(placer, painter, null);
    122118   
    123119    // create starting units
    124     placeCivDefaultEntities(fx, fz, id, BUILDING_ANGlE);
     120    placeCivDefaultEntities(fx, fz, id);
    125121   
    126122    // create animals
    127123    for (var j = 0; j < 2; ++j)
  • binaries/data/mods/public/maps/random/belgian_uplands.js

     
    66RMS.LoadLibrary("rmgen");
    77RMS.LoadLibrary("heightmap");
    88
    9 const BUILDING_ANGlE = -PI/4;
    10 
    11 // initialize map
    12 
    139log("Initializing map...");
    1410
    1511InitMap();
     
    419415{
    420416    var actualX = possibleStartPositions[bestDerivation[p]][0];
    421417    var actualY = possibleStartPositions[bestDerivation[p]][1];
    422     placeCivDefaultEntities(actualX, actualY, p + 1, BUILDING_ANGlE, {"iberWall" : false});
     418    placeCivDefaultEntities(actualX, actualY, p + 1, undefined, {"iberWall" : false});
    423419
    424420    // Place some start resources
    425421    var uDist = 8;
    426422    var uSpace = 1;
    427423    for (var j = 1; j <= 4; ++j)
    428424    {
    429         var uAngle = BUILDING_ANGlE - PI * (2-j) / 2;
     425        var uAngle = buildingAngle - PI * (2-j) / 2;
    430426        var count = 4;
    431427        for (var numberofentities = 0; numberofentities < count; numberofentities++)
    432428        {
  • binaries/data/mods/public/maps/random/cantabrian_highlands.js

     
    4747const pForestD = [tGrassDForest + TERRAIN_SEPARATOR + oOak, tGrassDForest + TERRAIN_SEPARATOR + oOakLarge, tGrassDForest];
    4848const pForestP = [tGrassPForest + TERRAIN_SEPARATOR + oPine, tGrassPForest + TERRAIN_SEPARATOR + oAleppoPine, tGrassPForest];
    4949
    50 const BUILDING_ANGlE = -PI/4;
    51 
    52 // initialize map
    53 
    5450log("Initializing map...");
    5551
    5652InitMap();
     
    145141    createArea(placer, painter, null);
    146142   
    147143    // create starting units
    148     placeCivDefaultEntities(fx, fz, id, BUILDING_ANGlE, {'iberWall' : false});
     144    placeCivDefaultEntities(fx, fz, id, undefined, {'iberWall' : false});
    149145   
    150146    // create animals
    151147    for (var j = 0; j < 2; ++j)
  • binaries/data/mods/public/maps/random/canyon.js

     
    4949
    5050const pForest1 = [tForestFloor2 + TERRAIN_SEPARATOR + oTree1, tForestFloor2 + TERRAIN_SEPARATOR + oTree2, tForestFloor2];
    5151const pForest2 = [tForestFloor1 + TERRAIN_SEPARATOR + oTree4, tForestFloor1 + TERRAIN_SEPARATOR + oTree5, tForestFloor1];
    52 const BUILDING_ANGlE = -PI/4;
    5352
    54 // initialize map
    55 
    5653log("Initializing map...");
    5754
    5855InitMap();
     
    156153    createArea(placer, [terrainPainter, elevationPainter, paintClass(clLand)], null);
    157154
    158155    // create starting units
    159     placeCivDefaultEntities(fx, fz, id, BUILDING_ANGlE);
     156    placeCivDefaultEntities(fx, fz, id);
    160157   
    161158    // create animals
    162159    for (var j = 0; j < 2; ++j)
  • binaries/data/mods/public/maps/random/continent.js

     
    4646
    4747const pForest1 = [tForestFloor2 + TERRAIN_SEPARATOR + oTree1, tForestFloor2 + TERRAIN_SEPARATOR + oTree2, tForestFloor2];
    4848const pForest2 = [tForestFloor1 + TERRAIN_SEPARATOR + oTree4, tForestFloor1 + TERRAIN_SEPARATOR + oTree5, tForestFloor1];
    49 const BUILDING_ANGlE = -PI/4;
    5049
    51 // initialize map
    52 
    5350log("Initializing map...");
    5451
    5552InitMap();
     
    153150    createArea(placer, [elevationPainter, paintClass(clLand)], null);
    154151   
    155152    // create starting units
    156     placeCivDefaultEntities(fx, fz, id, BUILDING_ANGlE);
     153    placeCivDefaultEntities(fx, fz, id);
    157154   
    158155    // create animals
    159156    for (var j = 0; j < 2; ++j)
  • binaries/data/mods/public/maps/random/corinthian_isthmus.js

     
    4646// terrain + entity (for painting)
    4747const pForest = [tForestFloor, tForestFloor + TERRAIN_SEPARATOR + oCarob, tForestFloor + TERRAIN_SEPARATOR + oDatePalm, tForestFloor + TERRAIN_SEPARATOR + oSDatePalm, tForestFloor];
    4848
    49 const BUILDING_ANGlE = -PI/4;
    50 
    5149log("Initializing map...");
    5250
    5351InitMap();
     
    182180    createArea(placer, painter, null);
    183181   
    184182    // create starting units
    185     placeCivDefaultEntities(fx, fz, id, BUILDING_ANGlE, {'iberWall' : 'towers'});
     183    placeCivDefaultEntities(fx, fz, id, undefined, {'iberWall' : 'towers'});
    186184   
    187185    // create animals
    188186    for (var j = 0; j < 2; ++j)
  • binaries/data/mods/public/maps/random/corsica.js

     
    6161var tForestNicaeLight = [tForestFloor + TERRAIN_SEPARATOR + ePine,tForestFloor + TERRAIN_SEPARATOR + ePine,tForestFloor + TERRAIN_SEPARATOR + eFanPalm, tForestFloor,tForestFloor,tForestFloor,tForestFloor,tForestFloor,tForestFloor,tForestFloor,tForestFloor,tForestFloor,tForestFloor,tForestFloor,tForestFloor,tForestFloor,tForestFloor,tForestFloor,tForestFloor,tForestFloor,tForestFloor,tForestFloor,tForestFloor,tForestFloor,tForestFloor,tForestFloor];
    6262var tForestNicaeScarce = [tForestFloor + TERRAIN_SEPARATOR + ePine,tForestFloor + TERRAIN_SEPARATOR + ePine,tForestFloor + TERRAIN_SEPARATOR + eFanPalm, tForestFloor,tForestFloor,tForestFloor,tForestFloor,tForestFloor,tForestFloor,tForestFloor,tForestFloor,tForestFloor,tForestFloor,tForestFloor,tForestFloor,tForestFloor,tForestFloor,tForestFloor,tForestFloor,tForestFloor,tForestFloor,tForestFloor,tForestFloor,tForestFloor,tForestFloor,tForestFloor,tForestFloor,tForestFloor,tForestFloor,tForestFloor,tForestFloor,tForestFloor,tForestFloor];
    6363
    64 const BUILDING_ANGlE = -PI/4;
    65 
    66 // initialize map
    67 
    6864log("Initializing map...");
    6965
    7066InitMap();
     
    336332    createArea(placer, [painter,paintClass(clSettlement),elevationPainter], null);
    337333   
    338334    // create starting units
    339     placeCivDefaultEntities(fx, fz, id, BUILDING_ANGlE, {'iberWall' : false});
     335    placeCivDefaultEntities(fx, fz, id, undefined, {'iberWall' : false});
    340336   
    341337    // create animals
    342338    for (var j = 0; j < 2; ++j)
  • binaries/data/mods/public/maps/random/cycladic_archipelago.js

     
    7070const pPoplarForest = [tForestFloor+TERRAIN_SEPARATOR+oLombardyPoplar, tGrass];
    7171const pMainForest = [tForestFloor+TERRAIN_SEPARATOR+oCarob, tForestFloor+TERRAIN_SEPARATOR+oBeech, tGrass, tGrass];
    7272
    73 const BUILDING_ANGlE = -PI/4;
    74 
    75 // initialize map
    76 
    7773log("Initializing map...");
    7874
    7975InitMap();
     
    284280    createArea(placer, [painter,paintClass(clCity)], null);
    285281
    286282    // create starting units
    287     placeCivDefaultEntities(fx, fz, id, BUILDING_ANGlE, {'iberWall' : 'towers'});
     283    placeCivDefaultEntities(fx, fz, id, undefined, {'iberWall' : 'towers'});
    288284
    289285    nPlayer++;
    290286}
  • binaries/data/mods/public/maps/random/deep_forest.js

     
    5858var baseRadius = 20;
    5959var minPlayerRadius = min(mapRadius-1.5*baseRadius, 5*mapRadius/8);
    6060var maxPlayerRadius = min(mapRadius-baseRadius, 3*mapRadius/4);
    61 const BUILDING_ANGlE = -PI/4;
    6261var playerStartLocX = new Array(numPlayers);
    6362var playerStartLocZ = new Array(numPlayers);
    6463var playerAngle = new Array(numPlayers);
     
    9695    playerStartLocX[i] = x;
    9796    playerStartLocZ[i] = z;
    9897    // Place starting entities
    99     placeCivDefaultEntities(x, z, i+1, BUILDING_ANGlE);
     98    placeCivDefaultEntities(x, z, i+1);
    10099    // Place base texture
    101100    var placer = new ClumpPlacer(2*baseRadius*baseRadius, 2/3, 1/8, 10, x, z);
    102101    var painter = [new LayeredPainter([terrainBaseBorder, terrainBase, terrainBaseCenter], [baseRadius/4, baseRadius/4]), paintClass(clPlayer)];
  • binaries/data/mods/public/maps/random/english_channel.js

     
    4949
    5050const WATER_WIDTH = 0.25;
    5151
    52 const BUILDING_ANGlE = -PI/4;
    53 
    54 // initialize map
    55 
    5652log("Initializing map...");
    5753
    5854InitMap();
     
    144140    createArea(placer, [painter, paintClass(clPlayer)], null);
    145141   
    146142    // create starting units
    147     placeCivDefaultEntities(fx, fz, id, BUILDING_ANGlE);
     143    placeCivDefaultEntities(fx, fz, id);
    148144   
    149145    // create animals
    150146    for (var j = 0; j < 2; ++j)
  • binaries/data/mods/public/maps/random/flood.js

     
    4747
    4848const pForest1 = [tForestFloor2 + TERRAIN_SEPARATOR + oTree1, tForestFloor2 + TERRAIN_SEPARATOR + oTree2, tForestFloor2];
    4949const pForest2 = [tForestFloor1 + TERRAIN_SEPARATOR + oTree4, tForestFloor1 + TERRAIN_SEPARATOR + oTree5, tForestFloor1];
    50 const BUILDING_ANGlE = -PI/4;
    5150
    5251log("Initializing map...");
    5352InitMap();
     
    146145    addToClass(ix - 5, iz, clPlayer);
    147146    addToClass(ix, iz - 5, clPlayer);
    148147
    149     placeCivDefaultEntities(fx, fz, id, BUILDING_ANGlE, { "iberWall": false });
     148    placeCivDefaultEntities(fx, fz, id, undefined, { "iberWall": false });
    150149
    151150    // Create the city patch
    152151    let cityRadius = radius/3;
  • binaries/data/mods/public/maps/random/fortress.js

     
    4747const pForestO = [tForestFloor + TERRAIN_SEPARATOR + oOak, tForestFloor];
    4848const pForestP = [tForestFloor + TERRAIN_SEPARATOR + oPine, tForestFloor];
    4949
    50 const BUILDING_ANGlE = -PI/4;
    51 
    52 // initialize map
    53 
    5450log("Initializing map...");
    5551
    5652InitMap();
     
    10096{
    10197    var startEntities = getStartingEntities(i);
    10298    // Place starting entities
    103     createStartingPlayerEntities(playerX[i], playerZ[i], i+1, startEntities, BUILDING_ANGlE)
     99    createStartingPlayerEntities(playerX[i], playerZ[i], i+1, startEntities)
    104100    var uDist = 8;
    105101    var uSpace = 2;
    106102    for (var j = 1; j < startEntities.length - 1; ++j)
    107103    {
    108         var uAngle = BUILDING_ANGlE - PI * (2-j) / 2;
     104        var uAngle = buildingAngle - PI * (2-j) / 2;
    109105        var count = (startEntities[j].Count !== undefined ? startEntities[j].Count : 1);
    110106        for (var numberofentities = 0; numberofentities < count; numberofentities++)
    111107        {
     
    115111        }
    116112    }
    117113    // create resources
    118     var bbAngle = BUILDING_ANGlE;
     114    var bbAngle = buildingAngle;
    119115    var bbDist = 10;
    120116    var bbX = round(playerX[i] + bbDist * cos(bbAngle));
    121117    var bbZ = round(playerZ[i] + bbDist * sin(bbAngle));
     
    191187            "cornerIn", "wallLong", "house", "tower", "wallLong", "tower", "wallLong",
    192188            "cornerIn", "wallLong", "house", "tower"];
    193189    }
    194     placeCustomFortress(playerX[i], playerZ[i], new Fortress("Spahbod", wall), civ, i+1, BUILDING_ANGlE);
     190    placeCustomFortress(playerX[i], playerZ[i], new Fortress("Spahbod", wall), civ, i+1);
    195191}
    196192
    197193// create lakes
  • binaries/data/mods/public/maps/random/gear.js

     
    4848
    4949const pForest1 = [tForestFloor2 + TERRAIN_SEPARATOR + oTree1, tForestFloor2 + TERRAIN_SEPARATOR + oTree2, tForestFloor2];
    5050const pForest2 = [tForestFloor1 + TERRAIN_SEPARATOR + oTree4, tForestFloor1 + TERRAIN_SEPARATOR + oTree5, tForestFloor1];
    51 const BUILDING_ANGlE = -PI/4;
    5251
    53 
    54 // initialize map
    55 
    5652log("Initializing map...");
    5753
    5854InitMap();
     
    156152    createArea(placer, painter, null);
    157153   
    158154    // create starting units
    159     placeCivDefaultEntities(fx, fz, id, BUILDING_ANGlE, {'iberWall' : 'towers'});
     155    placeCivDefaultEntities(fx, fz, id, undefined, {'iberWall' : 'towers'});
    160156   
    161157    // create animals
    162158    for (var j = 0; j < 2; ++j)
  • binaries/data/mods/public/maps/random/guadalquivir_river.js

     
    4343
    4444const pForestP = [tForestFloorP + TERRAIN_SEPARATOR + oPoplar, tForestFloorP];
    4545const pForestC = [tForestFloorC + TERRAIN_SEPARATOR + oCarob, tForestFloorC];
    46 const BUILDING_ANGlE = -PI/4;
    4746
    48 // initialize map
    49 
    5047log("Initializing map...");
    5148
    5249InitMap();
     
    152149    createArea(placer, painter, null);
    153150   
    154151    // create starting units
    155     placeCivDefaultEntities(fx, fz, id, BUILDING_ANGlE, {'iberWall' : false});
     152    placeCivDefaultEntities(fx, fz, id, undefined, {'iberWall' : false});
    156153   
    157154    // create animals
    158155    for (var j = 0; j < 2; ++j)
  • binaries/data/mods/public/maps/random/gulf_of_bothnia.js

     
    121121}
    122122
    123123const pForest = [tForestFloor + TERRAIN_SEPARATOR + oPine, tForestFloor];
    124 const BUILDING_ANGlE = -PI/4;
    125124
    126 // initialize map
    127 
    128125log("Initializing map...");
    129126
    130127InitMap();
     
    209206    createArea(placer, painter, null);
    210207   
    211208    // create starting units
    212     placeCivDefaultEntities(fx, fz, id, BUILDING_ANGlE);
     209    placeCivDefaultEntities(fx, fz, id);
    213210   
    214211    // create animals
    215212    for (var j = 0; j < 2; ++j)
  • binaries/data/mods/public/maps/random/hyrcanian_shores.js

     
    4747
    4848const WATER_WIDTH = 0.25;
    4949
    50 const BUILDING_ANGlE = -PI/4;
    51 
    52 // initialize map
    53 
    5450log("Initializing map...");
    5551
    5652InitMap();
     
    128124    createArea(placer, painter, null);
    129125   
    130126    // create starting units
    131     placeCivDefaultEntities(fx, fz, id, BUILDING_ANGlE);
     127    placeCivDefaultEntities(fx, fz, id);
    132128   
    133129    // create animals
    134130    for (var j = 0; j < 2; ++j)
  • binaries/data/mods/public/maps/random/island_stronghold.js

     
    5959
    6060const pForest1 = [tForestFloor2 + TERRAIN_SEPARATOR + oTree1, tForestFloor2 + TERRAIN_SEPARATOR + oTree2, tForestFloor2];
    6161const pForest2 = [tForestFloor1 + TERRAIN_SEPARATOR + oTree4, tForestFloor1 + TERRAIN_SEPARATOR + oTree5, tForestFloor1];
    62 const BUILDING_ANGlE = -PI/4;
    6362
    6463log("Initializing map...");
    6564InitMap();
     
    166165        createArea(placer, [terrainPainter, elevationPainter, paintClass(clLand)], null);
    167166
    168167        // create starting units
    169         placeCivDefaultEntities(fx, fz, teams[i][p], BUILDING_ANGlE, { "iberWall": false });
     168        placeCivDefaultEntities(fx, fz, teams[i][p], undefined, { "iberWall": false });
    170169    }
    171170
    172171    log("Create initial mines for team " + i);
  • binaries/data/mods/public/maps/random/islands.js

     
    4848
    4949const pForest1 = [tForestFloor2 + TERRAIN_SEPARATOR + oTree1, tForestFloor2 + TERRAIN_SEPARATOR + oTree2, tForestFloor2];
    5050const pForest2 = [tForestFloor1 + TERRAIN_SEPARATOR + oTree4, tForestFloor1 + TERRAIN_SEPARATOR + oTree5, tForestFloor1];
    51 const BUILDING_ANGlE = -PI/4;
    5251
    53 // initialize map
    54 
    5552log("Initializing map...");
    5653
    5754InitMap();
     
    124121    createArea(placer, [terrainPainter, elevationPainter, paintClass(clPlayer)], null);
    125122   
    126123    // create starting units
    127     placeCivDefaultEntities(fx, fz, id, BUILDING_ANGlE, {'iberWall' : 'towers'});
     124    placeCivDefaultEntities(fx, fz, id, undefined, {'iberWall' : 'towers'});
    128125   
    129126    // create animals
    130127    for (var j = 0; j < 2; ++j)
  • binaries/data/mods/public/maps/random/kerala.js

     
    3434
    3535const pForestD = [tForestFloor + TERRAIN_SEPARATOR + oTree, tForestFloor];
    3636const pForestP = [tForestFloor + TERRAIN_SEPARATOR + oPalm, tForestFloor];
    37 const BUILDING_ANGlE = -PI/4;
    3837
    39 // initialize map
    40 
    4138log("Initializing map...");
    4239
    4340InitMap();
     
    112109    createArea(placer, painter, null);
    113110   
    114111    // create starting units
    115     placeCivDefaultEntities(fx, fz, id, BUILDING_ANGlE);
     112    placeCivDefaultEntities(fx, fz, id);
    116113   
    117114        // create animals
    118115    for (var j = 0; j < 2; ++j)
  • binaries/data/mods/public/maps/random/lake.js

     
    4646
    4747const pForest1 = [tForestFloor2 + TERRAIN_SEPARATOR + oTree1, tForestFloor2 + TERRAIN_SEPARATOR + oTree2, tForestFloor2];
    4848const pForest2 = [tForestFloor1 + TERRAIN_SEPARATOR + oTree4, tForestFloor1 + TERRAIN_SEPARATOR + oTree5, tForestFloor1];
    49 const BUILDING_ANGlE = -PI/4;
    5049
    51 // initialize map
    52 
    5350log("Initializing map...");
    5451
    5552InitMap();
     
    125122    addToClass(ix, iz-5, clPlayer);
    126123   
    127124    // create starting units
    128     placeCivDefaultEntities(fx, fz, id, BUILDING_ANGlE);
     125    placeCivDefaultEntities(fx, fz, id);
    129126   
    130127    // create animals
    131128    for (var j = 0; j < 2; ++j)
  • binaries/data/mods/public/maps/random/latium.js

     
    6363const pPoplarForest = [tForestFloor+TERRAIN_SEPARATOR+oLombardyPoplar, tGrass];
    6464const pMainForest = [tForestFloor+TERRAIN_SEPARATOR+oCarob, tForestFloor+TERRAIN_SEPARATOR+oBeech, tGrass, tGrass];
    6565
    66 const BUILDING_ANGlE = -PI/4;
    67 
    68 // initialize map
    69 
    7066log("Initializing map...");
    7167
    7268InitMap();
     
    431427    createArea(placer, [painter, elevationPainter], null);
    432428   
    433429    // create starting units
    434     placeCivDefaultEntities(fx, fz, id, BUILDING_ANGlE);
     430    placeCivDefaultEntities(fx, fz, id);
    435431   
    436432    // create animals
    437433    for (var j = 0; j < 2; ++j)
  • binaries/data/mods/public/maps/random/lorraine_plain.js

     
    4242const pForestB = [tGrassDForest + TERRAIN_SEPARATOR + oBeech, tGrassDForest];
    4343const pForestO = [tGrassPForest + TERRAIN_SEPARATOR + oOak, tGrassPForest];
    4444const pForestR = [tGrassDForest + TERRAIN_SEPARATOR + oBeech, tGrassDForest, tGrassDForest + TERRAIN_SEPARATOR + oOak, tGrassDForest, tGrassDForest, tGrassDForest];
    45 const BUILDING_ANGlE = -PI/4;
    4645
    47 // initialize map
    48 
    4946log("Initializing map...");
    5047
    5148InitMap();
     
    133130    createArea(placer, painter, null);
    134131   
    135132    // create starting units
    136     placeCivDefaultEntities(fx, fz, id, BUILDING_ANGlE, {'iberWall' : 'towers'});
     133    placeCivDefaultEntities(fx, fz, id, undefined, {'iberWall' : 'towers'});
    137134   
    138135    // create animals
    139136    for (var j = 0; j < 2; ++j)
  • binaries/data/mods/public/maps/random/mainland.js

     
    4646
    4747const pForest1 = [tForestFloor2 + TERRAIN_SEPARATOR + oTree1, tForestFloor2 + TERRAIN_SEPARATOR + oTree2, tForestFloor2];
    4848const pForest2 = [tForestFloor1 + TERRAIN_SEPARATOR + oTree4, tForestFloor1 + TERRAIN_SEPARATOR + oTree5, tForestFloor1];
    49 const BUILDING_ANGlE = -PI/4;
    5049
    51 // initialize map
    52 
    5350log("Initializing map...");
    5451
    5552InitMap();
     
    125122    addToClass(ix, iz-5, clPlayer);
    126123   
    127124    // create starting units
    128     placeCivDefaultEntities(fx, fz, id, BUILDING_ANGlE);
     125    placeCivDefaultEntities(fx, fz, id);
    129126   
    130127    // create the city patch
    131128    var cityRadius = radius/3;
  • binaries/data/mods/public/maps/random/migration.js

     
    4747
    4848const pForest1 = [tForestFloor2 + TERRAIN_SEPARATOR + oTree1, tForestFloor2 + TERRAIN_SEPARATOR + oTree2, tForestFloor2];
    4949const pForest2 = [tForestFloor1 + TERRAIN_SEPARATOR + oTree4, tForestFloor1 + TERRAIN_SEPARATOR + oTree5, tForestFloor1];
    50 const BUILDING_ANGlE = -PI/4;
    5150
    52 // initialize map
    53 
    5451log("Initializing map...");
    5552
    5653InitMap();
     
    132129    createArea(placer, painter, null);
    133130   
    134131    // create starting units
    135     placeCivDefaultEntities(fx, fz, id, BUILDING_ANGlE, {'iberWall' : false});
     132    placeCivDefaultEntities(fx, fz, id, undefined, {'iberWall' : false});
    136133   
    137134    // create animals
    138135    for (var j = 0; j < 2; ++j)
  • binaries/data/mods/public/maps/random/neareastern_badlands.js

     
    4343const pForest = [tForestFloor + TERRAIN_SEPARATOR + oDatePalm, tForestFloor + TERRAIN_SEPARATOR + oSDatePalm, tForestFloor];
    4444const pForestOasis = [tGrass + TERRAIN_SEPARATOR + oDatePalm, tGrass + TERRAIN_SEPARATOR + oSDatePalm, tGrass];
    4545
    46 const BUILDING_ANGlE = -PI/4;
    47 
    48 // initialize map
    49 
    5046log("Initializing map...");
    5147
    5248InitMap();
     
    119115    createArea(placer, painter, null);
    120116   
    121117    // create starting units
    122     placeCivDefaultEntities(fx, fz, id, BUILDING_ANGlE);
     118    placeCivDefaultEntities(fx, fz, id);
    123119   
    124120    // create animals
    125121    for (var j = 0; j < 2; ++j)
  • binaries/data/mods/public/maps/random/new_rms_test.js

     
    11RMS.LoadLibrary("rmgen");
    22
    3 const BUILDING_ANGlE = -PI/4;
    4 
    5 // initialize map
    6 
    73log("Initializing map...");
    84
    95InitMap();
     
    5652    var iz = round(fz);
    5753
    5854    // create starting units
    59     placeCivDefaultEntities(fx, fz, id, BUILDING_ANGlE);
     55    placeCivDefaultEntities(fx, fz, id);
    6056}
    6157
    6258
  • binaries/data/mods/public/maps/random/northern_lights.js

     
    2929
    3030const pForestD = [tForestFloor + TERRAIN_SEPARATOR + oPine, tForestFloor, tForestFloor];
    3131const pForestS = [tForestFloor + TERRAIN_SEPARATOR + oPine, tForestFloor, tForestFloor, tForestFloor];
    32 const BUILDING_ANGlE = -PI/4;
    3332
    34 // initialize map
    35 
    3633log("Initializing map...");
    3734
    3835InitMap();
     
    107104    createArea(placer, painter, null);
    108105   
    109106    // create starting units
    110     placeCivDefaultEntities(fx, fz, id, BUILDING_ANGlE);
     107    placeCivDefaultEntities(fx, fz, id);
    111108   
    112109    // create metal mine
    113110    var bbAngle = randFloat(0, TWO_PI);
  • binaries/data/mods/public/maps/random/oasis.js

     
    3939const pForestMain = [tForestFloor + TERRAIN_SEPARATOR + ePalmShort, tForestFloor + TERRAIN_SEPARATOR + ePalmTall, tForestFloor];
    4040const pOasisForestLight = [tForestFloor + TERRAIN_SEPARATOR + ePalmShort, tForestFloor + TERRAIN_SEPARATOR + ePalmTall, tForestFloor,tForestFloor,tForestFloor
    4141                    ,tForestFloor,tForestFloor,tForestFloor,tForestFloor];
    42 const BUILDING_ANGlE = -PI/4;
    4342
    44 // initialize map
    45 
    4643log("Initializing map...");
    4744
    4845InitMap();
     
    126123    createArea(placer, painter, null);
    127124   
    128125    // create starting units
    129     placeCivDefaultEntities(fx, fz, id, BUILDING_ANGlE);
     126    placeCivDefaultEntities(fx, fz, id);
    130127       
    131128    // create animals
    132129    for (var j = 0; j < 2; ++j)
  • binaries/data/mods/public/maps/random/persian_highlands.js

     
    5454// terrain + entity (for painting)
    5555const pForestO = [tForestFloor + TERRAIN_SEPARATOR + oOak, tForestFloor + TERRAIN_SEPARATOR + oOak, tForestFloor, tDirtMain, tDirtMain];
    5656
    57 const BUILDING_ANGlE = -PI/4;
    58 
    5957log("Initializing map...");
    6058
    6159InitMap();
     
    136134    createArea(placer, painter, null);
    137135   
    138136    // create starting units
    139     placeCivDefaultEntities(fx, fz, id, BUILDING_ANGlE);
     137    placeCivDefaultEntities(fx, fz, id);
    140138   
    141139    // create animals
    142140    for (var j = 0; j < 2; ++j)
  • binaries/data/mods/public/maps/random/pheonician_levant.js

     
    4444// terrain + entity (for painting)
    4545const pForest = [tForestFloor + TERRAIN_SEPARATOR + oDatePalm, tForestFloor + TERRAIN_SEPARATOR + oSDatePalm, tForestFloor + TERRAIN_SEPARATOR + oCarob, tForestFloor, tForestFloor];
    4646
    47 const BUILDING_ANGlE = -PI/4;
    48 
    4947log("Initializing map...");
    5048
    5149InitMap();
     
    118116    createArea(placer, painter, null);
    119117   
    120118    // create starting units
    121     placeCivDefaultEntities(fx, fz, id, BUILDING_ANGlE);
     119    placeCivDefaultEntities(fx, fz, id);
    122120   
    123121    // create animals
    124122    for (var j = 0; j < 2; ++j)
  • binaries/data/mods/public/maps/random/pyrenean_sierra.js

     
    242242                        tForestTransition,tGrassLandForest2,tForestTransition,tForestTransition,tForestTransition,
    243243                        tGrassLandForest,tForestTransition,tGrassLandForest2,tForestTransition,
    244244                        tGrassLandForest2,tGrassLandForest2,tGrassLandForest2,tGrassLandForest2];
    245 const BUILDING_ANGlE = -PI/4;
    246245
    247 // initialize map
    248 
    249246log("Initializing map...");
    250247
    251248InitMap();
     
    351348    createArea(placer, painter, null);
    352349   
    353350    // create starting units
    354     placeCivDefaultEntities(fx, fz, id, BUILDING_ANGlE);
     351    placeCivDefaultEntities(fx, fz, id);
    355352   
    356353    // create animals
    357354    for (var j = 0; j < 2; ++j)
  • binaries/data/mods/public/maps/random/rhine_marshlands.js

     
    3737
    3838const pForestD = [tForestFloor + TERRAIN_SEPARATOR + oBeech, tForestFloor];
    3939const pForestP = [tForestFloor + TERRAIN_SEPARATOR + oOak, tForestFloor];
    40 const BUILDING_ANGlE = -PI/4;
    4140
    42 // initialize map
    43 
    4441log("Initializing map...");
    4542
    4643InitMap();
     
    113110    createArea(placer, painter, null);
    114111   
    115112    // create starting units
    116     placeCivDefaultEntities(fx, fz, id, BUILDING_ANGlE);
     113    placeCivDefaultEntities(fx, fz, id);
    117114   
    118115    // create animals
    119116    for (var j = 0; j < 2; ++j)
  • binaries/data/mods/public/maps/random/rivers.js

     
    5050
    5151const pForest1 = [tForestFloor2 + TERRAIN_SEPARATOR + oTree1, tForestFloor2 + TERRAIN_SEPARATOR + oTree2, tForestFloor2];
    5252const pForest2 = [tForestFloor1 + TERRAIN_SEPARATOR + oTree4, tForestFloor1 + TERRAIN_SEPARATOR + oTree5, tForestFloor1];
    53 const BUILDING_ANGlE = -PI/4;
    5453
    55 // initialize map
    56 
    5754log("Initializing map...");
    5855
    5956InitMap();
     
    154151    createArea(placer, painter, null);
    155152   
    156153    // create starting units
    157     placeCivDefaultEntities(fx, fz, id, BUILDING_ANGlE);
     154    placeCivDefaultEntities(fx, fz, id);
    158155   
    159156    // create animals
    160157    for (var j = 0; j < 2; ++j)
  • binaries/data/mods/public/maps/random/rmgen/library.js

     
    1313const MAX_HEIGHT_RANGE = 0xFFFF / HEIGHT_UNITS_PER_METRE // Engine limit, Roughly 700 meters
    1414const MIN_HEIGHT = - SEA_LEVEL;
    1515const MAX_HEIGHT = MAX_HEIGHT_RANGE - SEA_LEVEL;
     16// Default angle for buildings
     17var buildingAngle = -PI/4;
    1618
    1719function fractionToTiles(f)
    1820{
  • binaries/data/mods/public/maps/random/rmgen/misc.js

     
    136136//  fx&fz: position of player base
    137137//  playerid: id of player
    138138//  civEntities: use getStartingEntities(id-1) fo this one
    139 //  BUILDING_ANGlE: angle of main base building
     139//  angle: orientation of the main base building, default is buildingAngle
    140140//
    141141///////////////////////////////////////////////////////////////////////////////////////////
    142 function createStartingPlayerEntities(fx, fz, playerid, civEntities, BUILDING_ANGlE)
     142function createStartingPlayerEntities(fx, fz, playerid, civEntities, angle = buildingAngle)
    143143{
    144144    var uDist = 6;
    145145    var uSpace = 2;
    146     placeObject(fx, fz, civEntities[0].Template, playerid, BUILDING_ANGlE);
     146    placeObject(fx, fz, civEntities[0].Template, playerid, angle);
    147147    for (var j = 1; j < civEntities.length; ++j)
    148148    {
    149         var uAngle = BUILDING_ANGlE - PI * (2-j) / 2;
     149        var uAngle = angle - PI * (2-j) / 2;
    150150        var count = (civEntities[j].Count !== undefined ? civEntities[j].Count : 1);
    151151        for (var numberofentities = 0; numberofentities < count; numberofentities++)
    152152        {
     
    163163//  Creates the default starting player entities depending on the players civ
    164164//  fx&fy: position of player base
    165165//  playerid: id of player
    166 //  angle: angle of main base building, optional, default is BUILDING_ANGlE
     166//  angle: angle of main base building, optional, default is buildingAngle
    167167//  kwargs: Takes some optional keyword arguments to tweek things
    168168//      'iberWall': may be false, 'walls' (default) or 'towers'. Determines the defensive structures Iberians get as civ bonus
    169169//
    170170//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    171 function placeCivDefaultEntities(fx, fz, playerid, angle, kwargs)
     171function placeCivDefaultEntities(fx, fz, playerid, angle = buildingAngle, kwargs = {})
    172172{
    173173    // Unpack kwargs
    174174    kwargs = (kwargs || {});
  • binaries/data/mods/public/maps/random/rmgen/wall_builder.js

     
    470470//  fortress       An instance of Fortress with a wall defined
    471471//  style          Optional. Wall style string. Default is the civ of the given player, "palisades" for gaia
    472472//  playerId       Optional. Number of the player the wall will be placed for. Default is 0 (gaia)
    473 //  orientation    Optional. Angle the first wall element (should be a gate or entrance) is placed. Default is 0
     473//  orientation    Optional. Angle the first wall element (should be a gate or entrance) is placed. Default is buildingAngle
    474474/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    475 function placeCustomFortress(centerX, centerY, fortress, style, playerId, orientation)
     475function placeCustomFortress(centerX, centerY, fortress, style, playerId = 0, orientation = buildingAngle)
    476476{
    477477    // Graciously handle arguments
    478478    fortress = (fortress || fortressTypes["medium"]);
    479     playerId = (playerId || 0);
    480479    if (!wallStyles.hasOwnProperty(style))
    481480    {
    482481        if (playerId == 0)
     
    484483        else
    485484            style = (getCivCode(playerId-1));
    486485    }
    487     orientation = (orientation || 0);
    488486   
    489487    // Calculate center if fortress.centerToFirstElement is undefined (default)
    490488    var centerToFirstElement = fortress.centerToFirstElement;
  • binaries/data/mods/public/maps/random/saharan_oases.js

     
    4747// terrain + entity (for painting)
    4848const pForest = [tLush + TERRAIN_SEPARATOR + oDatePalm, tLush + TERRAIN_SEPARATOR + oSDatePalm, tLush];
    4949
    50 const BUILDING_ANGlE = -PI/4;
    51 
    5250log("Initializing map...");
    5351
    5452InitMap();
     
    118116    createArea(placer, painter, null);
    119117   
    120118    // create starting units
    121     placeCivDefaultEntities(fx, fz, id, BUILDING_ANGlE);
     119    placeCivDefaultEntities(fx, fz, id);
    122120   
    123121    // create animals
    124122    for (var j = 0; j < 2; ++j)
  • binaries/data/mods/public/maps/random/sahel.js

     
    5252    }
    5353}
    5454
    55 const BUILDING_ANGlE = -PI/4;
    56 
    57 // initialize map
    58 
    5955log("Initializing map...");
    6056
    6157InitMap();
     
    121117    addToClass(ix, iz-5, clPlayer);
    122118   
    123119    // create starting units
    124     placeCivDefaultEntities(fx, fz, id, BUILDING_ANGlE);
     120    placeCivDefaultEntities(fx, fz, id);
    125121   
    126122    // create animals
    127123    for (var j = 0; j < 2; ++j)
  • binaries/data/mods/public/maps/random/sahel_watering_holes.js

     
    4040const aBushSmall = "actor|props/flora/bush_dry_a.xml";
    4141
    4242const pForest = [tForestFloor + TERRAIN_SEPARATOR + oBaobab, tForestFloor + TERRAIN_SEPARATOR + oBaobab, tForestFloor];
    43 const BUILDING_ANGlE = -PI/4;
    4443
    45 // initialize map
    46 
    4744log("Initializing map...");
    4845
    4946InitMap();
     
    116113    createArea(placer, painter, null);
    117114   
    118115    // create starting units
    119     placeCivDefaultEntities(fx, fz, id, BUILDING_ANGlE);
     116    placeCivDefaultEntities(fx, fz, id);
    120117   
    121118    // create animals
    122119    for (var j = 0; j < 2; ++j)
  • binaries/data/mods/public/maps/random/schwarzwald.js

     
    109109var tWater = ['dirt_brown_d'];
    110110var tWaterBorder = ['dirt_brown_d'];
    111111
    112 const BUILDING_ANGlE = -PI/4;
    113 
    114112// Setup map
    115113var mapSize = getMapSize();
    116114var mapRadius = mapSize/2;
     
    242240
    243241    rectangularSmoothToHeight([x,z] , 20, 20, playerHeight, 0.8);
    244242
    245     placeCivDefaultEntities(x, z, i+1, BUILDING_ANGlE, {'iberWall': false});
     243    placeCivDefaultEntities(x, z, i+1, undefined, {'iberWall': false});
    246244   
    247245    // Place base texture
    248246    var placer = new ClumpPlacer(2*baseRadius*baseRadius, 2/3, 1/8, 10, x, z);
  • binaries/data/mods/public/maps/random/snowflake_searocks.js

     
    4646
    4747const pForest1 = [tForestFloor2 + TERRAIN_SEPARATOR + oTree1, tForestFloor2 + TERRAIN_SEPARATOR + oTree2, tForestFloor2];
    4848const pForest2 = [tForestFloor1 + TERRAIN_SEPARATOR + oTree4, tForestFloor1 + TERRAIN_SEPARATOR + oTree5, tForestFloor1];
    49 const BUILDING_ANGlE = -PI/4;
    5049
    51 
    52 // initialize map
    53 
    5450log("Initializing map...");
    5551
    5652InitMap();
     
    15551551    createArea(placer, painter, null);
    15561552   
    15571553    // create starting units
    1558     placeCivDefaultEntities(fx, fz, id, BUILDING_ANGlE, {'iberWall' : 'towers'});
     1554    placeCivDefaultEntities(fx, fz, id, undefined, {'iberWall' : 'towers'});
    15591555   
    15601556    // create animals
    15611557    for (var j = 0; j < 2; ++j)
  • binaries/data/mods/public/maps/random/survivalofthefittest.js

     
    4949
    5050const pForest1 = [tForestFloor2 + TERRAIN_SEPARATOR + oTree1, tForestFloor2 + TERRAIN_SEPARATOR + oTree2, tForestFloor2];
    5151const pForest2 = [tForestFloor1 + TERRAIN_SEPARATOR + oTree4, tForestFloor1 + TERRAIN_SEPARATOR + oTree5, tForestFloor1];
    52 const BUILDING_ANGlE = -PI/4;
    5352
    54 // initialize map
    55 
    5653log("Initializing map...");
    5754
    5855InitMap();
     
    163160    // Place default civ starting entities
    164161    var uDist = 6;
    165162    var uSpace = 2;
    166     placeObject(fx, fz, "skirmish/structures/default_civil_centre", id, BUILDING_ANGlE);
    167     var uAngle = BUILDING_ANGlE - PI / 2;
     163    placeObject(fx, fz, "skirmish/structures/default_civil_centre", id, buildingAngle);
     164    var uAngle = buildingAngle - PI / 2;
    168165    var count = 4;
    169166    for (var numberofentities = 0; numberofentities < count; numberofentities++)
    170167    {
  • binaries/data/mods/public/maps/random/syria.js

     
    4040
    4141const pForestP = [tForestFloor2 + TERRAIN_SEPARATOR + oPalm, tForestFloor2];
    4242const pForestT = [tForestFloor1 + TERRAIN_SEPARATOR + oTamarix,tForestFloor2];
    43 const BUILDING_ANGlE = -PI/4;
    4443
    45 
    46 // initialize map
    47 
    4844log("Initializing map...");
    4945
    5046InitMap();
     
    122118    createArea(placer, painter, null);
    123119   
    124120    // create starting units
    125     placeCivDefaultEntities(fx, fz, id, BUILDING_ANGlE);
     121    placeCivDefaultEntities(fx, fz, id);
    126122   
    127123    // create animals
    128124    for (var j = 0; j < 2; ++j)
  • binaries/data/mods/public/maps/random/the_nile.js

     
    4949var pForest = [tForestFloor + TERRAIN_SEPARATOR + oDatePalm, tForestFloor + TERRAIN_SEPARATOR + oSDatePalm, tForestFloor];
    5050var pForestOasis = [tGrass + TERRAIN_SEPARATOR + oDatePalm, tGrass + TERRAIN_SEPARATOR + oSDatePalm, tGrass];
    5151
    52 const BUILDING_ANGlE = -PI/4;
    53 
    5452log("Initializing map...");
    5553
    5654InitMap();
     
    144142    createArea(placer, painter, null);
    145143   
    146144    // create starting units
    147     placeCivDefaultEntities(fx, fz, id, BUILDING_ANGlE);
     145    placeCivDefaultEntities(fx, fz, id);
    148146   
    149147    // create animals
    150148    for (var j = 0; j < 2; ++j)
  • binaries/data/mods/public/maps/random/unknown.js

     
    4848
    4949const pForest1 = [tForestFloor2 + TERRAIN_SEPARATOR + oTree1, tForestFloor2 + TERRAIN_SEPARATOR + oTree2, tForestFloor2];
    5050const pForest2 = [tForestFloor1 + TERRAIN_SEPARATOR + oTree4, tForestFloor1 + TERRAIN_SEPARATOR + oTree5, tForestFloor1];
    51 const BUILDING_ANGlE = -PI/4;
    5251
    53 // initialize map
    54 
    5552log("Initializing map...");
    5653
    5754InitMap();
     
    16681665   
    16691666    // create starting units
    16701667    if (iberianTowers)
    1671         placeCivDefaultEntities(fx, fz, id, BUILDING_ANGlE, {'iberWall' : 'towers'});
     1668        placeCivDefaultEntities(fx, fz, id, undefined, {'iberWall' : 'towers'});
    16721669    else
    1673         placeCivDefaultEntities(fx, fz, id, BUILDING_ANGlE);
     1670        placeCivDefaultEntities(fx, fz, id);
    16741671   
    16751672    // create animals
    16761673    for (var j = 0; j < 2; ++j)
  • binaries/data/mods/public/maps/random/unknown_land.js

     
    4848
    4949const pForest1 = [tForestFloor2 + TERRAIN_SEPARATOR + oTree1, tForestFloor2 + TERRAIN_SEPARATOR + oTree2, tForestFloor2];
    5050const pForest2 = [tForestFloor1 + TERRAIN_SEPARATOR + oTree4, tForestFloor1 + TERRAIN_SEPARATOR + oTree5, tForestFloor1];
    51 const BUILDING_ANGlE = -PI/4;
    5251
    53 // initialize map
    54 
    5552log("Initializing map...");
    5653
    5754InitMap();
     
    14401437    var iz = round(fz);
    14411438   
    14421439    // create starting units
    1443     placeCivDefaultEntities(fx, fz, id, BUILDING_ANGlE);
     1440    placeCivDefaultEntities(fx, fz, id);
    14441441   
    14451442    // create animals
    14461443    for (var j = 0; j < 2; ++j)
  • binaries/data/mods/public/maps/random/unknown_nomad.js

     
    4848
    4949var pForestD = [tGrassDForest + TERRAIN_SEPARATOR + oOak, tGrassDForest + TERRAIN_SEPARATOR + oOakLarge, tGrassDForest];
    5050var pForestP = [tGrassPForest + TERRAIN_SEPARATOR + oPine, tGrassPForest + TERRAIN_SEPARATOR + oAleppoPine, tGrassPForest];
    51 const BUILDING_ANGlE = -PI/4;
    5251
    53 // initialize map
    54 
    5552log("Initializing map...");
    5653
    5754InitMap();
  • binaries/data/mods/public/maps/random/volcanic_lands.js

     
    2424
    2525var pForestD = [tGrassC + TERRAIN_SEPARATOR + oTree, tGrassC];
    2626var pForestP = [tGrassB + TERRAIN_SEPARATOR + oTree, tGrassB];
    27 const BUILDING_ANGlE = -PI/4;
    2827
    2928log("Initializing map...");
    3029InitMap();
     
    9089    createArea(placer, painter, null);
    9190
    9291    // create starting units
    93     placeCivDefaultEntities(fx, fz, id, BUILDING_ANGlE);
     92    placeCivDefaultEntities(fx, fz, id);
    9493
    9594    // create metal mine
    9695    var bbAngle = randFloat(0, TWO_PI);