@@ -562,9 +562,10 @@ class Lane {
562562 }
563563 this . width = lane_width ;
564564
565+ const nonHeadBuildings = [ b ( CARAVANSERAI ) , b ( FEITORIA ) ] ;
565566 for ( let r of Object . keys ( this . rows ) ) {
566567 for ( let i = 0 ; i < this . rows [ r ] . length ; i ++ ) {
567- if ( this . rows [ r ] [ i ] . isBuilding ( ) ) {
568+ if ( this . rows [ r ] [ i ] . isBuilding ( ) && ! nonHeadBuildings . includes ( this . rows [ r ] [ i ] . id ) ) {
568569 this . rows [ r ] [ i ] . x = this . x + ( ( this . width - this . padding ) / 2 ) - ( this . rows [ r ] [ i ] . width / 2 ) ;
569570 }
570571 }
@@ -1030,11 +1031,6 @@ function getDefaultTree() {
10301031 fortifiedchurchlane . rows . castle_2 . push ( uniqueunit ( WARRIOR_PRIEST ) ) ;
10311032 tree . lanes . push ( fortifiedchurchlane ) ;
10321033
1033-
1034- let houselane = new Lane ( ) ;
1035- houselane . rows . dark_1 . push ( building ( HOUSE ) ) ;
1036- tree . lanes . push ( houselane ) ;
1037-
10381034 let towncenterlane = new Lane ( ) ;
10391035 towncenterlane . rows . dark_1 . push ( building ( TOWN_CENTER ) ) ;
10401036 towncenterlane . rows . dark_2 . push ( unit ( VILLAGER ) ) ;
@@ -1050,24 +1046,14 @@ function getDefaultTree() {
10501046
10511047
10521048 let additionaltowncenterlane = new Lane ( ) ;
1049+ additionaltowncenterlane . rows . dark_1 . push ( building ( HOUSE ) ) ;
10531050 additionaltowncenterlane . rows . castle_1 . push ( building ( TOWN_CENTER_2 ) ) ;
1051+ additionaltowncenterlane . rows . imperial_1 . push ( building ( WONDER ) ) ;
1052+ additionaltowncenterlane . rows . imperial_2 . push ( building ( FEITORIA ) ) ;
1053+ additionaltowncenterlane . rows . imperial_2 . push ( building ( CARAVANSERAI ) ) ;
10541054 tree . lanes . push ( additionaltowncenterlane ) ;
10551055
10561056
1057- let wonderlane = new Lane ( ) ;
1058- wonderlane . rows . imperial_1 . push ( building ( WONDER ) ) ;
1059- tree . lanes . push ( wonderlane ) ;
1060-
1061-
1062- let feitorialane = new Lane ( ) ;
1063- feitorialane . rows . imperial_1 . push ( building ( FEITORIA ) ) ;
1064- tree . lanes . push ( feitorialane ) ;
1065-
1066- let caravanserailane = new Lane ( ) ;
1067- caravanserailane . rows . imperial_1 . push ( building ( CARAVANSERAI ) ) ;
1068- tree . lanes . push ( caravanserailane ) ;
1069-
1070-
10711057 let miningcamplane = new Lane ( ) ;
10721058 miningcamplane . rows . dark_1 . push ( building ( MINING_CAMP ) ) ;
10731059 miningcamplane . rows . feudal_1 . push ( tech ( GOLD_MINING ) ) ;
0 commit comments