Ticket #3930: 3930.5.diff

File 3930.5.diff, 45.0 KB (added by fatherbushido, 8 years ago)
  • binaries/data/mods/public/gui/session/selection_panels.js

    g_SelectionPanels.Research = {  
    800800        data.entType = data.item.pair ? [data.item.top, data.item.bottom] : [data.item];
    801801        data.template = data.entType.map(GetTechnologyData);
    802802        // abort if no template found for any of the techs
    803803        if (data.template.some(v => !v))
    804804            return false;
     805
     806        for (let template of data.template)
     807            for (let res in template.cost)
     808                template.cost[res] *= data.unitEntState.production.techCostMultiplier[res];
     809
    805810        // index one row below
    806811        var shiftedIndex = data.i + data.rowLength;
    807812        data.positions = data.item.pair ? [data.i, shiftedIndex] : [shiftedIndex];
    808813        data.positionsToHide = data.item.pair ? [] : [data.i];
    809814
  • binaries/data/mods/public/simulation/components/GuiInterface.js

    GuiInterface.prototype.GetEntityState =  
    291291
    292292    let cmpMarket = Engine.QueryInterface(ent, IID_Market);
    293293    if (cmpMarket)
    294294        ret.market = {
    295295            "land": cmpMarket.HasType("land"),
    296             "naval": cmpMarket.HasType("naval"),
     296            "naval": cmpMarket.HasType("naval")
    297297        };
    298298
    299299    let cmpPack = Engine.QueryInterface(ent, IID_Pack);
    300300    if (cmpPack)
    301301        ret.pack = {
    302302            "packed": cmpPack.IsPacked(),
    303             "progress": cmpPack.GetProgress(),
     303            "progress": cmpPack.GetProgress()
    304304        };
    305305
    306306    let cmpProductionQueue = Engine.QueryInterface(ent, IID_ProductionQueue);
    307307    if (cmpProductionQueue)
    308308        ret.production = {
    309309            "entities": cmpProductionQueue.GetEntitiesList(),
    310310            "technologies": cmpProductionQueue.GetTechnologiesList(),
    311             "queue": cmpProductionQueue.GetQueue(),
     311            "techCostMultiplier": cmpProductionQueue.GetTechCostMultiplier(),
     312            "queue": cmpProductionQueue.GetQueue()
    312313        };
    313314
    314315    let cmpTrader = Engine.QueryInterface(ent, IID_Trader);
    315316    if (cmpTrader)
    316317        ret.trader = {
  • binaries/data/mods/public/simulation/components/ProductionQueue.js

    ProductionQueue.prototype.Schema =  
    2727            "<attribute name='datatype'>" +
    2828                "<value>tokens</value>" +
    2929            "</attribute>" +
    3030            "<text/>" +
    3131        "</element>" +
    32     "</optional>";
     32    "</optional>" +
     33    "<element name='TechCostMultiplier' a:help='Multiplier to modify ressources cost and research time of technologies searched in this building.'>" +
     34        "<interleave>" +
     35            "<element name='food'><ref name='nonNegativeDecimal'/></element>" +
     36            "<element name='wood'><ref name='nonNegativeDecimal'/></element>" +
     37            "<element name='stone'><ref name='nonNegativeDecimal'/></element>" +
     38            "<element name='metal'><ref name='nonNegativeDecimal'/></element>" +
     39            "<element name='time'><ref name='nonNegativeDecimal'/></element>" +
     40        "</interleave>" +
     41    "</element>";
    3342
    3443ProductionQueue.prototype.Init = function()
    3544{
    3645    this.nextID = 1;
    3746
    ProductionQueue.prototype.GetTechnologie  
    214223    }
    215224
    216225    return ret;
    217226};
    218227
     228ProductionQueue.prototype.GetTechCostMultiplier = function()
     229{
     230    let techCostMultiplier = {}
     231    for (let res in this.template.TechCostMultiplier)
     232        techCostMultiplier[res] = ApplyValueModificationsToEntity("ProductionQueue/TechCostMultiplier/"+res, +this.template.TechCostMultiplier[res], this.entity);
     233    return techCostMultiplier;
     234};
     235
    219236ProductionQueue.prototype.IsTechnologyResearchedOrInProgress = function(tech)
    220237{
    221238    if (!tech)
    222239        return false;
    223240   
    ProductionQueue.prototype.AddBatch = fun  
    319336            var cmpDataTemplateManager = Engine.QueryInterface(SYSTEM_ENTITY, IID_DataTemplateManager);
    320337            var template = cmpDataTemplateManager.GetTechnologyTemplate(templateName);
    321338            if (!template)
    322339                return;
    323340            var cmpPlayer = QueryOwnerInterface(this.entity);
    324             var time = template.researchTime * cmpPlayer.GetCheatTimeMultiplier();
     341            let techCostMultiplier = this.GetTechCostMultiplier();
     342            let time =  techCostMultiplier.time * template.researchTime * cmpPlayer.GetCheatTimeMultiplier();
    325343
    326344            var cost = {};
    327             for each (var r in ["food", "wood", "stone", "metal"])
    328                 cost[r] = Math.floor(template.cost[r]);
    329            
     345            for (let res in template.cost)
     346                cost[res] = Math.floor(techCostMultiplier[res] * template.cost[res]);
     347
    330348            // TrySubtractResources should report error to player (they ran out of resources)
    331349            if (!cmpPlayer.TrySubtractResources(cost))
    332350                return;
    333351           
    334352            // Tell the technology manager that we have started researching this so that people can't research the same
  • binaries/data/mods/public/simulation/templates/other/maur_palace.xml

     
    2323      units/maur_champion_maiden_archer
    2424      units/maur_hero_chanakya
    2525      units/maur_hero_maurya
    2626      units/maur_hero_ashoka
    2727    </Entities>
     28    <TechCostMultiplier>
     29      <food>1.0</food>
     30      <wood>1.0</wood>
     31      <stone>1.0</stone>
     32      <metal>1.0</metal>
     33      <time>1.0</time>
     34    </TechCostMultiplier>
    2835  </ProductionQueue>
    2936  <TerritoryInfluence>
    3037    <Root>false</Root>
    3138    <Radius>38</Radius>
    3239    <Weight>65535</Weight>
  • binaries/data/mods/public/simulation/templates/structures/athen_gymnasion.xml

     
    3737    <BatchTimeModifier>0.7</BatchTimeModifier>
    3838    <Entities datatype="tokens">
    3939      units/{civ}_champion_infantry
    4040      units/{civ}_champion_ranged
    4141    </Entities>
     42    <TechCostMultiplier>
     43      <food>1.0</food>
     44      <wood>1.0</wood>
     45      <stone>1.0</stone>
     46      <metal>1.0</metal>
     47      <time>1.0</time>
     48    </TechCostMultiplier>
    4249  </ProductionQueue>
    4350  <VisualActor>
    4451    <Actor>structures/athenians/gymnasion.xml</Actor>
    4552    <FoundationActor>structures/fndn_6x6.xml</FoundationActor>
    4653  </VisualActor>
  • binaries/data/mods/public/simulation/templates/structures/athen_prytaneion.xml

     
    4242    <Entities datatype="tokens">
    4343      units/{civ}_hero_themistocles
    4444      units/{civ}_hero_pericles
    4545      units/{civ}_hero_iphicrates
    4646    </Entities>
     47    <TechCostMultiplier>
     48      <food>1.0</food>
     49      <wood>1.0</wood>
     50      <stone>1.0</stone>
     51      <metal>1.0</metal>
     52      <time>1.0</time>
     53    </TechCostMultiplier>
    4754    <Technologies datatype="tokens">
    4855      hellenes/special_long_walls
    4956      hellenes/special_iphicratean_reforms
    5057    </Technologies>
    5158  </ProductionQueue>
  • binaries/data/mods/public/simulation/templates/structures/brit_kennel.xml

     
    5656  <ProductionQueue>
    5757    <BatchTimeModifier>0.7</BatchTimeModifier>
    5858    <Entities datatype="tokens">
    5959      units/brit_war_dog_b
    6060    </Entities>
     61    <TechCostMultiplier>
     62      <food>1.0</food>
     63      <wood>1.0</wood>
     64      <stone>1.0</stone>
     65      <metal>1.0</metal>
     66      <time>1.0</time>
     67    </TechCostMultiplier>
    6168  </ProductionQueue>
    6269  <VisualActor>
    6370    <Actor>structures/celts/kennel.xml</Actor>
    6471    <FoundationActor>structures/fndn_2x2.xml</FoundationActor>
    6572  </VisualActor>
  • binaries/data/mods/public/simulation/templates/structures/cart_super_dock.xml

     
    4444    <Static width="42.0" depth="58.0"/>
    4545  </Obstruction>
    4646  <Position>
    4747    <Floating>true</Floating>
    4848  </Position>
     49  <ProductionQueue>
     50    <BatchTimeModifier>0.7</BatchTimeModifier>
     51    <Entities datatype="tokens">
     52      units/{civ}_ship_bireme
     53      units/{civ}_ship_trireme
     54      units/{civ}_ship_quinquereme
     55    </Entities>
     56    <TechCostMultiplier>
     57      <food>1.0</food>
     58      <wood>1.0</wood>
     59      <stone>1.0</stone>
     60      <metal>1.0</metal>
     61      <time>1.0</time>
     62    </TechCostMultiplier>
     63    <Technologies datatype="tokens">
     64      carthaginians/training_phoenician_naval_architects
     65      carthaginians/special_exploration
     66    </Technologies>
     67  </ProductionQueue>
    4968  <RallyPointRenderer>
    5069    <LinePassabilityClass>ship</LinePassabilityClass>
    5170  </RallyPointRenderer>
    5271  <Sound>
    5372    <SoundGroups>
     
    6079  <TerritoryInfluence>
    6180    <Root>true</Root>
    6281    <Radius>200</Radius>
    6382    <Weight>25000</Weight>
    6483  </TerritoryInfluence>
    65   <ProductionQueue>
    66     <BatchTimeModifier>0.7</BatchTimeModifier>
    67     <Entities datatype="tokens">
    68       units/{civ}_ship_bireme
    69       units/{civ}_ship_trireme
    70       units/{civ}_ship_quinquereme
    71     </Entities>
    72     <Technologies datatype="tokens">
    73       carthaginians/training_phoenician_naval_architects
    74       carthaginians/special_exploration
    75     </Technologies>
    76   </ProductionQueue>
    7784  <Vision>
    7885    <Range>100</Range>
    7986  </Vision>
    8087  <VisualActor>
    8188    <Actor>structures/carthaginians/super_dock.xml</Actor>
  • binaries/data/mods/public/simulation/templates/structures/mace_library.xml

     
    2222  <Obstruction>
    2323    <Static width="25.0" depth="30.0"/>
    2424  </Obstruction>
    2525  <ProductionQueue>
    2626    <BatchTimeModifier>0.7</BatchTimeModifier>
     27    <TechCostMultiplier>
     28      <food>1.0</food>
     29      <wood>1.0</wood>
     30      <stone>1.0</stone>
     31      <metal>1.0</metal>
     32      <time>1.0</time>
     33    </TechCostMultiplier>
    2734    <Technologies datatype="tokens">
    2835      successors/special_hellenistic_metropolis
    2936    </Technologies>
    3037  </ProductionQueue>
    3138  <Sound>
  • binaries/data/mods/public/simulation/templates/structures/mace_siege_workshop.xml

     
    2929      units/{civ}_mechanical_siege_oxybeles_packed
    3030      units/{civ}_mechanical_siege_lithobolos_packed
    3131      units/{civ}_mechanical_siege_ram
    3232      units/{civ}_mechanical_siege_tower
    3333    </Entities>
     34    <TechCostMultiplier>
     35      <food>1.0</food>
     36      <wood>1.0</wood>
     37      <stone>1.0</stone>
     38      <metal>1.0</metal>
     39      <time>1.0</time>
     40    </TechCostMultiplier>
    3441    <Technologies datatype="tokens">
    3542      siege_attack
    3643      siege_armor
    3744      siege_cost_metal
    3845      siege_cost_wood
  • binaries/data/mods/public/simulation/templates/structures/maur_elephant_stables.xml

     
    3636    <Entities datatype="tokens">
    3737      units/{civ}_support_elephant
    3838      units/{civ}_elephant_archer_b
    3939      units/{civ}_champion_elephant
    4040    </Entities>
     41    <TechCostMultiplier>
     42      <food>1.0</food>
     43      <wood>1.0</wood>
     44      <stone>1.0</stone>
     45      <metal>1.0</metal>
     46      <time>1.0</time>
     47    </TechCostMultiplier>
    4148  </ProductionQueue>
    4249  <Sound>
    4350    <SoundGroups>
    4451      <select>interface/select/building/sel_elephant_stables.xml</select>
    4552      <constructed>interface/complete/building/complete_elephant_stables.xml</constructed>
  • binaries/data/mods/public/simulation/templates/structures/pers_apadana.xml

     
    3434    <Tooltip>"Satrapy Tribute": Gain a trickle of food, wood, stone, and metal resources. Train Persian heroes and their "Immortals" bodyguards.</Tooltip>
    3535  </Identity>
    3636  <Obstruction>
    3737    <Static width="30.0" depth="30.0"/>
    3838  </Obstruction>
    39   <TerritoryInfluence>
    40     <Root>true</Root>
    41     <Radius>48</Radius>
    42   </TerritoryInfluence>
    4339  <ProductionQueue>
    4440    <BatchTimeModifier>0.8</BatchTimeModifier>
    4541    <Entities datatype="tokens">
    4642      units/{civ}_hero_cyrus
    4743      units/{civ}_hero_darius
    4844      units/{civ}_hero_xerxes
    4945      units/{civ}_champion_infantry
    5046    </Entities>
     47    <TechCostMultiplier>
     48      <food>1.0</food>
     49      <wood>1.0</wood>
     50      <stone>1.0</stone>
     51      <metal>1.0</metal>
     52      <time>1.0</time>
     53    </TechCostMultiplier>
    5154    <Technologies datatype="tokens">
    5255      persians/immortals
    5356    </Technologies>
    5457  </ProductionQueue>
     58  <TerritoryInfluence>
     59    <Root>true</Root>
     60    <Radius>48</Radius>
     61  </TerritoryInfluence>
    5562  <ResourceTrickle>
    5663    <Rates>
    5764      <food>1.0</food>
    5865      <wood>1.0</wood>
    5966      <stone>0.75</stone>
  • binaries/data/mods/public/simulation/templates/structures/pers_hall.xml

     
    2929Train War Elephants and Kardakes mercenaries.</Tooltip>
    3030  </Identity>
    3131  <Obstruction>
    3232    <Static width="25.0" depth="25.0"/>
    3333  </Obstruction>
     34  <ProductionQueue>
     35    <BatchTimeModifier>0.7</BatchTimeModifier>
     36    <Entities datatype="tokens">
     37      units/{civ}_kardakes_hoplite
     38      units/{civ}_kardakes_skirmisher
     39      units/{civ}_champion_elephant
     40    </Entities>
     41    <TechCostMultiplier>
     42      <food>1.0</food>
     43      <wood>1.0</wood>
     44      <stone>1.0</stone>
     45      <metal>1.0</metal>
     46      <time>1.0</time>
     47    </TechCostMultiplier>
     48  </ProductionQueue>
    3449  <Sound>
    3550    <SoundGroups>
    3651      <select>interface/select/building/sel_broch.xml</select>
    3752      <constructed>interface/complete/building/complete_broch.xml</constructed>
    3853      <death>attack/destruction/building_collapse_large.xml</death>
    Train War Elephants and Kardakes mercena  
    4156  <TerritoryDecay disable=""/>
    4257  <TerritoryInfluence>
    4358    <Root>false</Root>
    4459    <Radius>38</Radius>
    4560  </TerritoryInfluence>
    46   <ProductionQueue>
    47     <BatchTimeModifier>0.7</BatchTimeModifier>
    48     <Entities datatype="tokens">
    49       units/{civ}_kardakes_hoplite
    50       units/{civ}_kardakes_skirmisher
    51       units/{civ}_champion_elephant
    52     </Entities>
    53   </ProductionQueue>
    5461  <VisualActor>
    5562    <Actor>structures/persians/sb2.xml</Actor>
    5663    <FoundationActor>structures/fndn_6x6.xml</FoundationActor>
    5764  </VisualActor>
    5865</Entity>
  • binaries/data/mods/public/simulation/templates/structures/ptol_library.xml

     
    2222  <Obstruction>
    2323    <Static width="25.0" depth="30.0"/>
    2424  </Obstruction>
    2525  <ProductionQueue>
    2626    <BatchTimeModifier>0.7</BatchTimeModifier>
     27    <TechCostMultiplier>
     28      <food>1.0</food>
     29      <wood>1.0</wood>
     30      <stone>1.0</stone>
     31      <metal>1.0</metal>
     32      <time>1.0</time>
     33    </TechCostMultiplier>
    2734    <Technologies datatype="tokens">
    2835      successors/special_hellenistic_metropolis
    2936    </Technologies>
    3037  </ProductionQueue>
    3138  <Sound>
  • binaries/data/mods/public/simulation/templates/structures/rome_army_camp.xml

     
    6666    <History>Sometimes it was a temporary camp built facing the route by which the army is to march, other times a defensive or offensive (for sieges) structure. Within this gate the tents of the first centuries or cohorts are pitched, and the dragons (ensigns of cohorts) and other ensigns planted. The Decumane gate is directly opposite to the Praetorian in the rear of the camp, and through this the soldiers are conducted to the place appointed for punishment or execution.</History>
    6767  </Identity>
    6868  <Obstruction>
    6969    <Static width="36.0" depth="36.0"/>
    7070  </Obstruction>
    71   <Sound>
    72     <SoundGroups>
    73       <select>interface/select/building/sel_broch.xml</select>
    74       <constructed>interface/complete/building/complete_broch.xml</constructed>
    75       <death>attack/destruction/building_collapse_large.xml</death>
    76     </SoundGroups>
    77   </Sound>
    78   <TerritoryDecay>
    79     <DecayRate>37.5</DecayRate>
    80   </TerritoryDecay>
    81   <TerritoryInfluence disable=""/>
    8271  <ProductionQueue>
    8372    <BatchTimeModifier>0.7</BatchTimeModifier>
    8473    <Entities datatype="tokens">
    8574      units/{civ}_infantry_swordsman_b
    8675      units/{civ}_infantry_spearman_a
     
    9180      units/{civ}_mechanical_siege_oxybeles_packed
    9281      units/{civ}_mechanical_siege_lithobolos_packed
    9382      units/{civ}_mechanical_siege_ram
    9483      units/{civ}_mechanical_siege_tower
    9584    </Entities>
     85    <TechCostMultiplier>
     86      <food>1.0</food>
     87      <wood>1.0</wood>
     88      <stone>1.0</stone>
     89      <metal>1.0</metal>
     90      <time>1.0</time>
     91    </TechCostMultiplier>
    9692  </ProductionQueue>
     93  <Sound>
     94    <SoundGroups>
     95      <select>interface/select/building/sel_broch.xml</select>
     96      <constructed>interface/complete/building/complete_broch.xml</constructed>
     97      <death>attack/destruction/building_collapse_large.xml</death>
     98    </SoundGroups>
     99  </Sound>
     100  <TerritoryDecay>
     101    <DecayRate>37.5</DecayRate>
     102  </TerritoryDecay>
     103  <TerritoryInfluence disable=""/>
    97104  <Vision>
    98105    <Range>60</Range>
    99106  </Vision>
    100107  <VisualActor>
    101108    <Actor>structures/romans/camp.xml</Actor>
  • binaries/data/mods/public/simulation/templates/structures/sele_library.xml

     
    2222  <Obstruction>
    2323    <Static width="25.0" depth="30.0"/>
    2424  </Obstruction>
    2525  <ProductionQueue>
    2626    <BatchTimeModifier>0.7</BatchTimeModifier>
     27    <TechCostMultiplier>
     28      <food>1.0</food>
     29      <wood>1.0</wood>
     30      <stone>1.0</stone>
     31      <metal>1.0</metal>
     32      <time>1.0</time>
     33    </TechCostMultiplier>
    2734    <Technologies datatype="tokens">
    2835      successors/special_hellenistic_metropolis
    2936    </Technologies>
    3037  </ProductionQueue>
    3138  <Sound>
  • binaries/data/mods/public/simulation/templates/structures/spart_gerousia.xml

     
    2525    <Icon>structures/tholos.png</Icon>
    2626  </Identity>
    2727  <Obstruction>
    2828    <Static width="20.0" depth="20.0"/>
    2929  </Obstruction>
     30  <ProductionQueue>
     31    <BatchTimeModifier>0.7</BatchTimeModifier>
     32    <Entities datatype="tokens">
     33      units/{civ}_hero_leonidas
     34    </Entities>
     35    <TechCostMultiplier>
     36      <food>1.0</food>
     37      <wood>1.0</wood>
     38      <stone>1.0</stone>
     39      <metal>1.0</metal>
     40      <time>1.0</time>
     41    </TechCostMultiplier>
     42  </ProductionQueue>
    3043  <Sound>
    3144    <SoundGroups>
    3245      <select>interface/select/building/sel_tholos.xml</select>
    3346      <constructed>interface/complete/building/complete_tholos.xml</constructed>
    3447      <death>attack/destruction/building_collapse_large.xml</death>
    3548    </SoundGroups>
    3649  </Sound>
    37   <ProductionQueue>
    38     <BatchTimeModifier>0.7</BatchTimeModifier>
    39     <Entities datatype="tokens">
    40       units/{civ}_hero_leonidas
    41     </Entities>
    42   </ProductionQueue>
    4350  <VisualActor>
    4451    <Actor>structures/hellenes/tholos.xml</Actor>
    4552  </VisualActor>
    4653</Entity>
  • binaries/data/mods/public/simulation/templates/structures/spart_syssiton.xml

     
    2828    <Icon>structures/gymnasion.png</Icon>
    2929  </Identity>
    3030  <Obstruction>
    3131    <Static width="16.0" depth="26.0"/>
    3232  </Obstruction>
    33   <Sound>
    34     <SoundGroups>
    35       <select>interface/select/building/sel_gymnasium.xml</select>
    36       <constructed>interface/complete/building/complete_gymnasium.xml</constructed>
    37       <death>attack/destruction/building_collapse_large.xml</death>
    38     </SoundGroups>
    39   </Sound>
    4033  <ProductionQueue>
    4134    <BatchTimeModifier>0.7</BatchTimeModifier>
    4235    <Entities datatype="tokens">
    4336      units/{civ}_hero_leonidas
    4437      units/{civ}_hero_brasidas
    4538      units/{civ}_hero_agis
    4639      units/{civ}_champion_infantry_spear
    4740    </Entities>
     41    <TechCostMultiplier>
     42      <food>1.0</food>
     43      <wood>1.0</wood>
     44      <stone>1.0</stone>
     45      <metal>1.0</metal>
     46      <time>1.0</time>
     47    </TechCostMultiplier>
    4848    <Technologies datatype="tokens">
    4949      hellenes/spartans_agoge
    5050    </Technologies>
    5151  </ProductionQueue>
     52  <Sound>
     53    <SoundGroups>
     54      <select>interface/select/building/sel_gymnasium.xml</select>
     55      <constructed>interface/complete/building/complete_gymnasium.xml</constructed>
     56      <death>attack/destruction/building_collapse_large.xml</death>
     57    </SoundGroups>
     58  </Sound>
    5259  <VisualActor>
    5360    <Actor>structures/spartans/syssiton.xml</Actor>
    5461    <FoundationActor>structures/fndn_4x6.xml</FoundationActor>
    5562  </VisualActor>
    5663</Entity>
  • binaries/data/mods/public/simulation/templates/template_structure_civic_civil_centre.xml

     
    8484  <ProductionQueue>
    8585    <BatchTimeModifier>0.8</BatchTimeModifier>
    8686    <Entities datatype="tokens">
    8787      units/{civ}_support_female_citizen
    8888    </Entities>
     89    <TechCostMultiplier>
     90      <food>1.0</food>
     91      <wood>1.0</wood>
     92      <stone>1.0</stone>
     93      <metal>1.0</metal>
     94      <time>1.0</time>
     95    </TechCostMultiplier>
    8996    <Technologies datatype="tokens">
    9097      phase_town
    9198      phase_city
    9299    </Technologies>
    93100  </ProductionQueue>
  • binaries/data/mods/public/simulation/templates/template_structure_civic_hellenic_royal_stoa.xml

     
    4949    <Entities datatype="tokens">
    5050      units/thrace_black_cloak
    5151      units/mace_thureophoros
    5252      units/mace_thorakites
    5353    </Entities>
     54    <TechCostMultiplier>
     55      <food>1.0</food>
     56      <wood>1.0</wood>
     57      <stone>1.0</stone>
     58      <metal>1.0</metal>
     59      <time>1.0</time>
     60    </TechCostMultiplier>
    5461  </ProductionQueue>
    5562  <Vision>
    5663    <Range>40</Range>
    5764  </Vision>
    5865  <VisualActor>
  • binaries/data/mods/public/simulation/templates/template_structure_civic_house.xml

     
    4949  <ProductionQueue>
    5050    <BatchTimeModifier>1.0</BatchTimeModifier>
    5151    <Entities datatype="tokens">
    5252      units/{civ}_support_female_citizen_house
    5353    </Entities>
     54    <TechCostMultiplier>
     55      <food>1.0</food>
     56      <wood>1.0</wood>
     57      <stone>1.0</stone>
     58      <metal>1.0</metal>
     59      <time>1.0</time>
     60    </TechCostMultiplier>
    5461    <Technologies datatype="tokens">
    5562      health_females_01
    5663      pop_house_01
    5764      unlock_females_house
    5865    </Technologies>
  • binaries/data/mods/public/simulation/templates/template_structure_civic_temple.xml

     
    5959  <ProductionQueue>
    6060    <BatchTimeModifier>0.8</BatchTimeModifier>
    6161    <Entities datatype="tokens">
    6262      units/{civ}_support_healer_b
    6363    </Entities>
     64    <TechCostMultiplier>
     65      <food>1.0</food>
     66      <wood>1.0</wood>
     67      <stone>1.0</stone>
     68      <metal>1.0</metal>
     69      <time>1.0</time>
     70    </TechCostMultiplier>
    6471    <Technologies datatype="tokens">
    6572      heal_range
    6673      heal_range_2
    6774      heal_rate
    6875      heal_rate_2
  • binaries/data/mods/public/simulation/templates/template_structure_defense_defense_tower.xml

     
    6868  <Obstruction>
    6969    <Static width="7.0" depth="7.0"/>
    7070  </Obstruction>
    7171  <ProductionQueue>
    7272    <BatchTimeModifier>0.7</BatchTimeModifier>
     73    <TechCostMultiplier>
     74      <food>1.0</food>
     75      <wood>1.0</wood>
     76      <stone>1.0</stone>
     77      <metal>1.0</metal>
     78      <time>1.0</time>
     79    </TechCostMultiplier>
    7380    <Technologies datatype="tokens">
    7481      attack_tower_watch
    7582      attack_tower_crenellations
    7683      attack_tower_range
    7784      attack_tower_murderholes
  • binaries/data/mods/public/simulation/templates/template_structure_defense_outpost.xml

     
    7070  <Obstruction>
    7171    <Static width="6.5" depth="6.5"/>
    7272  </Obstruction>
    7373  <ProductionQueue>
    7474    <BatchTimeModifier>0.7</BatchTimeModifier>
     75    <TechCostMultiplier>
     76      <food>1.0</food>
     77      <wood>1.0</wood>
     78      <stone>1.0</stone>
     79      <metal>1.0</metal>
     80      <time>1.0</time>
     81    </TechCostMultiplier>
    7582    <Technologies datatype="tokens">
    7683      vision_outpost
    7784      decay_outpost
    7885    </Technologies>
    7986  </ProductionQueue>
  • binaries/data/mods/public/simulation/templates/template_structure_defense_wall_tower.xml

     
    6767    <Static width="6.0" depth="6.0"/>
    6868    <ControlPersist/>
    6969  </Obstruction>
    7070  <ProductionQueue>
    7171    <BatchTimeModifier>0.8</BatchTimeModifier>
     72    <TechCostMultiplier>
     73      <food>1.0</food>
     74      <wood>1.0</wood>
     75      <stone>1.0</stone>
     76      <metal>1.0</metal>
     77      <time>1.0</time>
     78    </TechCostMultiplier>
    7279    <Technologies datatype="tokens">
    7380      pair_walls_01
    7481    </Technologies>
    7582  </ProductionQueue>
    7683  <Sound>
  • binaries/data/mods/public/simulation/templates/template_structure_economic_farmstead.xml

     
    3737  <Obstruction>
    3838    <Static width="12.0" depth="12.0"/>
    3939  </Obstruction>
    4040  <ProductionQueue>
    4141    <BatchTimeModifier>0.7</BatchTimeModifier>
     42    <TechCostMultiplier>
     43      <food>1.0</food>
     44      <wood>1.0</wood>
     45      <stone>1.0</stone>
     46      <metal>1.0</metal>
     47      <time>1.0</time>
     48    </TechCostMultiplier>
    4249    <Technologies datatype="tokens">
    4350      gather_wicker_baskets
    4451        gather_farming_plows
    4552      gather_farming_training
    4653      gather_farming_fertilizer
  • binaries/data/mods/public/simulation/templates/template_structure_economic_market.xml

     
    5151    <Radius>40</Radius>
    5252    <Weight>30000</Weight>
    5353  </TerritoryInfluence>
    5454  <ProductionQueue>
    5555    <BatchTimeModifier>0.7</BatchTimeModifier>
     56    <TechCostMultiplier>
     57      <food>1.0</food>
     58      <wood>1.0</wood>
     59      <stone>1.0</stone>
     60      <metal>1.0</metal>
     61      <time>1.0</time>
     62    </TechCostMultiplier>
    5663    <Technologies datatype="tokens">
    5764      unlock_shared_los
    5865      unlock_shared_dropsites
    5966      trade_convoys_speed
    6067      trade_convoys_armor
  • binaries/data/mods/public/simulation/templates/template_structure_economic_storehouse.xml

     
    3737  <Obstruction>
    3838    <Static width="13.0" depth="13.0"/>
    3939  </Obstruction>
    4040  <ProductionQueue>
    4141    <BatchTimeModifier>0.7</BatchTimeModifier>
     42    <TechCostMultiplier>
     43      <food>1.0</food>
     44      <wood>1.0</wood>
     45      <stone>1.0</stone>
     46      <metal>1.0</metal>
     47      <time>1.0</time>
     48    </TechCostMultiplier>
    4249    <Technologies datatype="tokens">
    4350      gather_lumbering_ironaxes
    4451      gather_lumbering_strongeraxes
    4552      gather_lumbering_sharpaxes
    4653      gather_mining_servants
  • binaries/data/mods/public/simulation/templates/template_structure_military_barracks.xml

     
    5454      units/{civ}_cavalry_swordsman_b
    5555      units/{civ}_cavalry_spearman_b
    5656      units/{civ}_cavalry_javelinist_b
    5757      units/{civ}_cavalry_archer_b
    5858    </Entities>
     59    <TechCostMultiplier>
     60      <food>1.0</food>
     61      <wood>1.0</wood>
     62      <stone>1.0</stone>
     63      <metal>1.0</metal>
     64      <time>1.0</time>
     65    </TechCostMultiplier>
    5966    <Technologies datatype="tokens">
    6067      heal_barracks
    6168      training_conscription
    6269    </Technologies>
    6370  </ProductionQueue>
  • binaries/data/mods/public/simulation/templates/template_structure_military_blacksmith.xml

     
    1515  </Footprint>
    1616  <GarrisonHolder>
    1717    <Max>1</Max>
    1818    <EjectHealth>0.1</EjectHealth>
    1919    <EjectClassesOnDestroy datatype="tokens">Unit</EjectClassesOnDestroy>
    20     <List datatype="tokens">Infantry</List>
     20    <List datatype="tokens">Infantry Healer</List>
    2121    <BuffHeal>0</BuffHeal>
    2222    <LoadingRange>2</LoadingRange>
    2323  </GarrisonHolder>
    2424  <Health>
    2525    <Max>2000</Max>
     
    4343  <Obstruction>
    4444    <Static width="17.0" depth="17.0"/>
    4545  </Obstruction>
    4646  <ProductionQueue>
    4747    <BatchTimeModifier>0.8</BatchTimeModifier>
     48    <TechCostMultiplier>
     49      <food>1.0</food>
     50      <wood>1.0</wood>
     51      <stone>1.0</stone>
     52      <metal>1.0</metal>
     53      <time>1.0</time>
     54    </TechCostMultiplier>
    4855    <Technologies datatype="tokens">
    4956      attack_infantry_melee_01
    5057      attack_infantry_melee_02
    5158      attack_infantry_ranged_01
    5259      attack_infantry_ranged_02
  • binaries/data/mods/public/simulation/templates/template_structure_military_dock.xml

     
    4242    <Static width="18.0" depth="18.0"/>
    4343  </Obstruction>
    4444  <Position>
    4545    <Floating>true</Floating>
    4646  </Position>
    47   <RallyPointRenderer>
    48     <LinePassabilityClass>ship</LinePassabilityClass>
    49   </RallyPointRenderer>
    50   <ResourceDropsite>
    51     <Types>food wood stone metal</Types>
    52     <Sharable>true</Sharable>
    53   </ResourceDropsite>
    54   <Sound>
    55     <SoundGroups>
    56       <select>interface/select/building/sel_dock.xml</select>
    57       <constructed>interface/complete/building/complete_dock.xml</constructed>
    58       <death>attack/destruction/building_collapse_large.xml</death>
    59     </SoundGroups>
    60   </Sound>
    61   <TerritoryDecay disable=""/>
    6247  <ProductionQueue>
    6348    <BatchTimeModifier>0.8</BatchTimeModifier>
    6449    <Entities datatype="tokens">
    6550      units/{civ}_ship_fishing
    6651      units/{civ}_ship_merchant
    6752      units/{civ}_ship_bireme
    6853      units/{civ}_ship_trireme
    6954    </Entities>
     55    <TechCostMultiplier>
     56      <food>1.0</food>
     57      <wood>1.0</wood>
     58      <stone>1.0</stone>
     59      <metal>1.0</metal>
     60      <time>1.0</time>
     61    </TechCostMultiplier>
    7062    <Technologies datatype="tokens">
    7163      gather_capacity_fishing
    7264      gather_fishing_net
    7365      training_naval_architects
    7466      armor_ship_reinforcedhull
    7567      armor_ship_hypozomata
    7668      armor_ship_hullsheathing
    7769    </Technologies>
    7870  </ProductionQueue>
    79    <Vision>
     71  <RallyPointRenderer>
     72    <LinePassabilityClass>ship</LinePassabilityClass>
     73  </RallyPointRenderer>
     74  <ResourceDropsite>
     75    <Types>food wood stone metal</Types>
     76    <Sharable>true</Sharable>
     77  </ResourceDropsite>
     78  <Sound>
     79    <SoundGroups>
     80      <select>interface/select/building/sel_dock.xml</select>
     81      <constructed>interface/complete/building/complete_dock.xml</constructed>
     82      <death>attack/destruction/building_collapse_large.xml</death>
     83    </SoundGroups>
     84  </Sound>
     85  <TerritoryDecay disable=""/>
     86  <Vision>
    8087    <Range>40</Range>
    8188  </Vision>
    8289  <VisualActor>
    8390    <FoundationActor>structures/fndn_4x4_dock.xml</FoundationActor>
    8491  </VisualActor>
  • binaries/data/mods/public/simulation/templates/template_structure_military_embassy.xml

     
    3535  <Obstruction>
    3636    <Static width="16.0" depth="16.0"/>
    3737  </Obstruction>
    3838  <ProductionQueue>
    3939    <BatchTimeModifier>0.8</BatchTimeModifier>
     40    <TechCostMultiplier>
     41      <food>1.0</food>
     42      <wood>1.0</wood>
     43      <stone>1.0</stone>
     44      <metal>1.0</metal>
     45      <time>1.0</time>
     46    </TechCostMultiplier>
    4047  </ProductionQueue>
    4148  <Sound>
    4249    <SoundGroups>
    4350      <select>interface/select/building/sel_gymnasium.xml</select>
    4451      <constructed>interface/complete/building/complete_gymnasium.xml</constructed>
  • binaries/data/mods/public/simulation/templates/template_structure_military_fortress.xml

     
    8585      units/{civ}_mechanical_siege_oxybeles_packed
    8686      units/{civ}_mechanical_siege_lithobolos_packed
    8787      units/{civ}_mechanical_siege_ram
    8888      units/{civ}_mechanical_siege_tower
    8989    </Entities>
     90    <TechCostMultiplier>
     91      <food>1.0</food>
     92      <wood>1.0</wood>
     93      <stone>1.0</stone>
     94      <metal>1.0</metal>
     95      <time>1.0</time>
     96    </TechCostMultiplier>
    9097    <Technologies datatype="tokens">
    9198      attack_soldiers_will
    9299    </Technologies>
    93100  </ProductionQueue>
    94101  <Sound>
  • binaries/data/mods/public/simulation/templates/template_structure_resource_corral.xml

     
    3333  <ProductionQueue>
    3434    <BatchTimeModifier>0.7</BatchTimeModifier>
    3535    <Entities datatype="tokens">
    3636      gaia/fauna_sheep
    3737    </Entities>
     38    <TechCostMultiplier>
     39      <food>1.0</food>
     40      <wood>1.0</wood>
     41      <stone>1.0</stone>
     42      <metal>1.0</metal>
     43      <time>1.0</time>
     44    </TechCostMultiplier>
    3845    <Technologies datatype="tokens">
    3946      gather_animals_stockbreeding
    4047      speed_cavalry_01
    4148      speed_cavalry_02
    4249    </Technologies>
  • binaries/data/mods/public/simulation/templates/template_structure_wonder.xml

     
    6060  <Obstruction>
    6161    <Static width="30.0" depth="30.0"/>
    6262  </Obstruction>
    6363  <ProductionQueue>
    6464    <BatchTimeModifier>0.7</BatchTimeModifier>
     65    <TechCostMultiplier>
     66      <food>1.0</food>
     67      <wood>1.0</wood>
     68      <stone>1.0</stone>
     69      <metal>1.0</metal>
     70      <time>1.0</time>
     71    </TechCostMultiplier>
    6572    <Technologies datatype="tokens">
    6673      pop_wonder
    6774    </Technologies>
    6875  </ProductionQueue>
    6976  <RallyPoint disable=""/>
  • binaries/data/mods/public/simulation/templates/units/athen_ship_trireme.xml

     
    1111    <BatchTimeModifier>0.7</BatchTimeModifier>
    1212    <Entities datatype="tokens">
    1313      units/athen_infantry_marine_archer_b
    1414      units/athen_champion_marine
    1515    </Entities>
     16    <TechCostMultiplier>
     17      <food>1.0</food>
     18      <wood>1.0</wood>
     19      <stone>1.0</stone>
     20      <metal>1.0</metal>
     21      <time>1.0</time>
     22    </TechCostMultiplier>
    1623  </ProductionQueue>
    1724  <VisualActor>
    1825    <Actor>structures/athenians/trireme.xml</Actor>
    1926  </VisualActor>
    2027</Entity>
  • binaries/data/mods/public/simulation/templates/units/maur_hero_ashoka.xml

     
    11<?xml version="1.0" encoding="utf-8"?>
    22<Entity parent="template_unit_hero_cavalry_archer">
     3  <Auras datatype="tokens">maur_hero_ashoka</Auras>
    34  <Footprint replace="">
    45    <Square width="6.0" depth="12.0"/>
    56    <Height>5.0</Height>
    67  </Footprint>
    78  <Identity>
  • binaries/data/mods/public/simulation/templates/units/maur_hero_chanakya.xml

     
    33  <Armour>
    44    <Hack>4.0</Hack>
    55    <Pierce>8.0</Pierce>
    66    <Crush>4.0</Crush>
    77  </Armour>
    8   <Heal>
    9     <Range>20</Range>
    10     <HP>12</HP>
    11     <Rate>2000</Rate>
    12     <UnhealableClasses datatype="tokens"/>
    13     <HealableClasses datatype="tokens">Human</HealableClasses>
    14   </Heal>
     8  <Auras datatype="tokens">maur_hero_chanakya</Auras>
    159  <Cost>
    1610    <Population>2</Population>
    1711    <BuildTime>60</BuildTime>
    1812    <Resources>
    1913      <food>100</food>
    2014      <metal>250</metal>
    2115    </Resources>
    2216  </Cost>
     17  <Heal>
     18    <Range>20</Range>
     19    <HP>12</HP>
     20    <Rate>2000</Rate>
     21    <UnhealableClasses datatype="tokens"/>
     22    <HealableClasses datatype="tokens">Human</HealableClasses>
     23  </Heal>
    2324  <Health>
    2425    <Max>600</Max>
    2526  </Health>
    2627  <Identity>
    2728    <Civ>maur</Civ>
    28     <Classes datatype="tokens">Human Organic</Classes>
     29    <Classes datatype="tokens">Human Organic Support</Classes>
    2930    <VisibleClasses datatype="tokens">Hero Healer</VisibleClasses>
    3031    <GenericName>Acharya Chanakya</GenericName>
    3132    <SpecificName>Acharya Chāṇakya</SpecificName>
    3233    <Icon>units/maur_hero_chanakya.png</Icon>
    3334    <Tooltip>Hero Special: "Healer" - Heal units at an accelerated rate.
    34 Hero Special: "Teacher" - Empower a building to research and train +50% faster.
    3535Hero Special: "Philosopher" - Research 4 special technologies only available to Chanakya.</Tooltip>
    3636    <RequiredTechnology>phase_city</RequiredTechnology>
    3737  </Identity>
    3838  <Minimap>
    3939    <Type>hero</Type>
  • binaries/data/mods/public/simulation/templates/units/maur_hero_maurya.xml

     
    99  <ProductionQueue>
    1010    <BatchTimeModifier>0.7</BatchTimeModifier>
    1111    <Entities datatype="tokens">
    1212      units/maur_champion_maiden_archer
    1313    </Entities>
     14    <TechCostMultiplier>
     15      <food>1.0</food>
     16      <wood>1.0</wood>
     17      <stone>1.0</stone>
     18      <metal>1.0</metal>
     19      <time>1.0</time>
     20    </TechCostMultiplier>
    1421  </ProductionQueue>
    1522  <VisualActor>
    1623    <Actor>units/mauryans/elephant_hero.xml</Actor>
    1724  </VisualActor>
    1825</Entity>
  • binaries/data/mods/public/simulation/templates/units/pers_hero_cyrus.xml

     
    1111  <ProductionQueue>
    1212    <BatchTimeModifier>0.7</BatchTimeModifier>
    1313    <Entities datatype="tokens">
    1414      units/pers_champion_infantry
    1515    </Entities>
     16    <TechCostMultiplier>
     17      <food>1.0</food>
     18      <wood>1.0</wood>
     19      <stone>1.0</stone>
     20      <metal>1.0</metal>
     21      <time>1.0</time>
     22    </TechCostMultiplier>
    1623  </ProductionQueue>
    1724  <VisualActor>
    1825    <Actor>units/persians/hero_cyrus.xml</Actor>
    1926  </VisualActor>
    2027</Entity>
  • binaries/data/mods/public/simulation/templates/units/pers_ship_trireme.xml

     
    1515    <BatchTimeModifier>0.8</BatchTimeModifier>
    1616    <Entities datatype="tokens">
    1717      units/pers_cavalry_swordsman_b_trireme
    1818      units/pers_cavalry_javelinist_b_trireme
    1919    </Entities>
     20    <TechCostMultiplier>
     21      <food>1.0</food>
     22      <wood>1.0</wood>
     23      <stone>1.0</stone>
     24      <metal>1.0</metal>
     25      <time>1.0</time>
     26    </TechCostMultiplier>
    2027  </ProductionQueue>
    2128  <VisualActor>
    2229    <Actor>structures/persians/trireme.xml</Actor>
    2330  </VisualActor>
    2431</Entity>