Ticket #3930: 3930.13.diff

File 3930.13.diff, 41.8 KB (added by fatherbushido, 3 years ago)

remove productionqueue of mauryan_pilar and sele_colonade

  • binaries/data/mods/public/globalscripts/Templates.js

    function GetTemplateDataHelper(template, 
    245245        };
    246246        if (template.UnitMotion.Run)
    247247            ret.speed.run = func("UnitMotion/Run/Speed", +template.UnitMotion.Run.Speed, player, template);
    248248    }
    249249
     250    if (template.ProductionQueue)
     251    {
     252        ret.techCostMultiplier = {};
     253        for (let res in template.ProductionQueue.TechCostMultiplier)
     254            ret.techCostMultiplier[res] = func("ProductionQueue/TechCostMultiplier/"+res, +template.ProductionQueue.TechCostMultiplier[res], player, template);
     255    }
     256
    250257    if (template.Trader)
    251258    {
    252259        ret.trader = {
    253260            "GainMultiplier": func("Trader/GainMultiplier", +template.Trader.GainMultiplier, player, template)
    254261        };
  • binaries/data/mods/public/gui/session/selection_panels.js

    g_SelectionPanels.Research = { 
    802802        data.entType = data.item.pair ? [data.item.top, data.item.bottom] : [data.item];
    803803        data.template = data.entType.map(GetTechnologyData);
    804804        // abort if no template found for any of the techs
    805805        if (data.template.some(v => !v))
    806806            return false;
     807
     808        for (let template of data.template)
     809            for (let res in template.cost)
     810                template.cost[res] *= data.unitEntState.production.techCostMultiplier[res];
     811
    807812        // index one row below
    808813        var shiftedIndex = data.i + data.rowLength;
    809814        data.positions = data.item.pair ? [data.i, shiftedIndex] : [shiftedIndex];
    810815        data.positionsToHide = data.item.pair ? [] : [data.i];
    811816
  • binaries/data/mods/public/gui/structree/draw.js

    function draw() 
    6868                }
    6969                if (stru.production.technology[prod_pha])
    7070                {
    7171                    for (let prod of stru.production.technology[prod_pha])
    7272                    {
    73                         prod = (depath(prod).slice(0,5) == "phase") ? g_ParsedData.phases[prod] : g_ParsedData.techs[prod];
     73                        prod = clone(depath(prod).slice(0,5) == "phase" ? g_ParsedData.phases[prod] : g_ParsedData.techs[prod]);
     74                        for (let res in stru.techCostMultiplier)
     75                            if (prod.cost[res])
     76                                prod.cost[res] *= stru.techCostMultiplier[res];
    7477                        if (!drawProdIcon(i, s, r, p, prod))
    7578                            break;
    7679                        p++;
    7780                    }
    7881                }
    function draw() 
    131134                {
    132135                case "units":
    133136                    prod = g_ParsedData.units[prod];
    134137                    break;
    135138                case "techs":
    136                     prod = g_ParsedData.techs[prod];
     139                    prod = clone(g_ParsedData.techs[prod]);
     140                    for (let res in trainer.techCostMultiplier)
     141                        if (prod.cost[res])
     142                            prod.cost[res] *= trainer.techCostMultiplier[res];
    137143                    break;
    138144                default:
    139145                    continue;
    140146                }
    141147                if (!drawProdIcon(null, t, null, p, prod))
  • binaries/data/mods/public/gui/structree/load.js

    function loadStructure(templateName) 
    143143        // Note: Assume wall segments of all lengths have the same armor and auras
    144144        let struct = loadStructure(structure.wallSet.templates.long);
    145145        structure.armour = struct.armour;
    146146        structure.auras = struct.auras;
    147147
     148        // For technology cost multiplier, we need to use the tower
     149        struct = loadStructure(structure.wallSet.templates.tower);
     150        structure.techCostMultiplier = struct.techCostMultiplier;
     151
    148152        let health;
    149153
    150154        for (let wSegm in structure.wallSet.templates)
    151155        {
    152156            let wPart = loadStructure(structure.wallSet.templates[wSegm]);
  • binaries/data/mods/public/simulation/components/GuiInterface.js

    GuiInterface.prototype.GetEntityState = 
    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/data/auras/library.json

     
     1{
     2    "type": "global",
     3    "affects": ["Structure"],
     4    "modifications": [
     5        { "value": "ProductionQueue/TechCostMultiplier/wood", "multiply": 0.9 },
     6        { "value": "ProductionQueue/TechCostMultiplier/food", "multiply": 0.9 },
     7        { "value": "ProductionQueue/TechCostMultiplier/metal", "multiply": 0.9 },
     8        { "value": "ProductionQueue/TechCostMultiplier/stone", "multiply": 0.9 }
     9    ],
     10    "auraDescription": "Reduces the cost of all remaining technologies by 10%.",
     11    "auraName": "Library Aura"
     12}
  • binaries/data/mods/public/simulation/data/auras/maur_hero_ashoka.json

     
     1{
     2    "type": "global",
     3    "affectedPlayers": ["MutualAlly"],
     4    "affects": ["Temple"],
     5    "modifications": [
     6        { "value": "ProductionQueue/TechCostMultiplier/wood", "multiply": 0.5 },
     7        { "value": "ProductionQueue/TechCostMultiplier/food", "multiply": 0.5 },
     8        { "value": "ProductionQueue/TechCostMultiplier/metal", "multiply": 0.5 },
     9        { "value": "ProductionQueue/TechCostMultiplier/stone", "multiply": 0.5 },
     10        { "value": "ProductionQueue/TechCostMultiplier/time", "multiply": 0.5 }
     11    ],
     12    "auraDescription": "All player and allied Temple technologies -50% cost and -50% research time.",
     13    "auraName": "Evangelism Aura",
     14    "overlayIcon": "art/textures/ui/session/auras/build_bonus.png"
     15}
  • binaries/data/mods/public/simulation/data/auras/maur_hero_chanakya.json

     
     1{
     2    "type": "garrison",
     3    "affects": ["Structure"],
     4    "modifications": [
     5        { "value": "ProductionQueue/TechCostMultiplier/time", "multiply": 0.5 }
     6    ],
     7    "auraDescription": "Empower a building with -50% research time.",
     8    "auraName": "Teacher Aura",
     9    "overlayIcon": "art/textures/ui/session/auras/build_bonus.png"
     10}
  • binaries/data/mods/public/simulation/templates/other/bench.xml

     
    3232    <Color r="119" g="82" b="46"/>
    3333  </Minimap>
    3434  <Obstruction>
    3535    <Static width="1.5" depth="4.0"/>
    3636  </Obstruction>
     37  <ProductionQueue disable=""/>
    3738  <StatusBars>
    3839    <HeightOffset>6.0</HeightOffset>
    3940  </StatusBars>
    4041  <Vision>
    4142    <Range>4</Range>
  • binaries/data/mods/public/simulation/templates/other/bridge_hele.xml

     
    2222  <Obstruction>
    2323    <Obstructions>
    2424      <Edge width="59" depth="4" x="0" z="5"/>
    2525    </Obstructions>
    2626  </Obstruction>
     27  <ProductionQueue disable=""/>
    2728  <Selectable>
    2829    <EditorOnly/>
    2930  </Selectable>
    3031  <Vision>
    3132    <Range>72</Range>
  • binaries/data/mods/public/simulation/templates/other/bridge_wooden.xml

     
    2121  <Obstruction>
    2222    <Obstructions>
    2323      <Edge width="59" depth="4" x="0" z="5"/>
    2424    </Obstructions>
    2525  </Obstruction>
     26  <ProductionQueue disable=""/>
    2627  <Minimap disable=""/>
    2728  <Selectable>
    2829    <EditorOnly/>
    2930  </Selectable>
    3031  <Vision>
  • binaries/data/mods/public/simulation/templates/other/column_doric.xml

     
    3030    <metal>0</metal>
    3131  </Loot>
    3232  <Obstruction>
    3333    <Static width="2.0" depth="2.0"/>
    3434  </Obstruction>
     35  <ProductionQueue disable=""/>
    3536  <StatusBars>
    3637    <HeightOffset>8.0</HeightOffset>
    3738  </StatusBars>
    3839  <Vision>
    3940    <Range>4</Range>
  • binaries/data/mods/public/simulation/templates/other/column_doric_fallen.xml

     
    2929    <metal>0</metal>
    3030  </Loot>
    3131  <Obstruction>
    3232    <Static width="2.0" depth="12.0"/>
    3333  </Obstruction>
     34  <ProductionQueue disable=""/>
    3435  <StatusBars>
    3536    <HeightOffset>6.0</HeightOffset>
    3637  </StatusBars>
    3738  <Vision>
    3839    <Range>4</Range>
  • binaries/data/mods/public/simulation/templates/other/column_doric_fallen_b.xml

     
    3030    <metal>0</metal>
    3131  </Loot>
    3232  <Obstruction>
    3333    <Static width="2.0" depth="2.0"/>
    3434  </Obstruction>
     35  <ProductionQueue disable=""/>
    3536  <StatusBars>
    3637    <HeightOffset>6.0</HeightOffset>
    3738  </StatusBars>
    3839  <Vision>
    3940    <Range>4</Range>
  • binaries/data/mods/public/simulation/templates/other/fence_long.xml

     
    3333    <Color r="119" g="82" b="46"/>
    3434  </Minimap>
    3535  <Obstruction>
    3636    <Static width="1.5" depth="13.0"/>
    3737  </Obstruction>
     38  <ProductionQueue disable=""/>
    3839  <StatusBars>
    3940    <HeightOffset>6.0</HeightOffset>
    4041  </StatusBars>
    4142  <TerritoryDecay disable=""/>
    4243  <Vision>
  • binaries/data/mods/public/simulation/templates/other/fence_short.xml

     
    3333    <Color r="119" g="82" b="46"/>
    3434  </Minimap>
    3535  <Obstruction>
    3636    <Static width="1.5" depth="6.5"/>
    3737  </Obstruction>
     38  <ProductionQueue disable=""/>
    3839  <StatusBars>
    3940    <HeightOffset>6.0</HeightOffset>
    4041  </StatusBars>
    4142  <TerritoryDecay disable=""/>
    4243  <Visibility>
  • binaries/data/mods/public/simulation/templates/other/fence_stone.xml

     
    3030    <metal>0</metal>
    3131  </Loot>
    3232  <Obstruction>
    3333    <Static width="1.5" depth="10.5"/>
    3434  </Obstruction>
     35  <ProductionQueue disable=""/>
    3536  <StatusBars>
    3637    <HeightOffset>6.0</HeightOffset>
    3738  </StatusBars>
    3839  <TerritoryDecay disable=""/>
    3940  <Vision>
  • binaries/data/mods/public/simulation/templates/other/hellenic_propylaea.xml

     
    3636    <metal>75</metal>
    3737  </Loot>
    3838  <Obstruction>
    3939    <Static width="26.0" depth="30.0"/>
    4040  </Obstruction>
     41  <ProductionQueue disable=""/>
    4142  <TerritoryInfluence>
    4243    <Root>false</Root>
    4344    <Radius>40</Radius>
    4445    <Weight>65535</Weight>
    4546  </TerritoryInfluence>
  • binaries/data/mods/public/simulation/templates/other/hellenic_stoa.xml

     
    3636    <metal>50</metal>
    3737  </Loot>
    3838  <Obstruction>
    3939    <Static width="26.0" depth="10.5"/>
    4040  </Obstruction>
     41  <ProductionQueue disable=""/>
    4142  <RallyPoint disable=""/>
    4243  <TerritoryInfluence>
    4344    <Root>false</Root>
    4445    <Radius>36</Radius>
    4546    <Weight>65535</Weight>
  • binaries/data/mods/public/simulation/templates/other/obelisk.xml

     
    3131    <metal>200</metal>
    3232  </Loot>
    3333  <Obstruction>
    3434    <Static width="4.0" depth="4.0"/>
    3535  </Obstruction>
     36  <ProductionQueue disable=""/>
    3637  <TerritoryDecay disable=""/>
    3738  <Vision>
    3839    <Range>12</Range>
    3940  </Vision>
    4041  <VisualActor>
  • binaries/data/mods/public/simulation/templates/other/sele_colonnade.xml

     
    3030    <metal>0</metal>
    3131  </Loot>
    3232  <Obstruction>
    3333    <Static width="1.5" depth="1.5"/>
    3434  </Obstruction>
     35  <ProductionQueue disable=""/>
    3536  <StatusBars>
    3637    <HeightOffset>8.0</HeightOffset>
    3738  </StatusBars>
    3839  <Vision>
    3940    <Range>4</Range>
  • binaries/data/mods/public/simulation/templates/other/table_rectangle.xml

     
    3232    <Color r="119" g="82" b="46"/>
    3333  </Minimap>
    3434  <Obstruction>
    3535    <Static width="3.5" depth="4.75"/>
    3636  </Obstruction>
     37  <ProductionQueue disable=""/>
    3738  <StatusBars>
    3839    <HeightOffset>6.0</HeightOffset>
    3940  </StatusBars>
    4041  <TerritoryDecay disable=""/>
    4142  <Vision>
  • binaries/data/mods/public/simulation/templates/other/table_square.xml

     
    3232    <Color r="119" g="82" b="46"/>
    3333  </Minimap>
    3434  <Obstruction>
    3535    <Static width="4.0" depth="4.0"/>
    3636  </Obstruction>
     37  <ProductionQueue disable=""/>
    3738  <StatusBars>
    3839    <HeightOffset>6.0</HeightOffset>
    3940  </StatusBars>
    4041  <TerritoryDecay disable=""/>
    4142  <Vision>
  • binaries/data/mods/public/simulation/templates/structures/athen_theatron.xml

     
    2929    <Icon>structures/theatron.png</Icon>
    3030  </Identity>
    3131  <Obstruction>
    3232    <Static width="46.0" depth="46.0"/>
    3333  </Obstruction>
     34  <ProductionQueue disable=""/>
    3435  <Sound>
    3536    <SoundGroups>
    3637      <select>interface/select/building/sel_greek_theater.xml</select>
    3738      <constructed>interface/complete/building/complete_greek_theater.xml</constructed>
    3839      <death>attack/destruction/building_collapse_large.xml</death>
  • binaries/data/mods/public/simulation/templates/structures/brit_rotarymill.xml

     
    2626    <Icon>structures/rotarymill.png</Icon>
    2727  </Identity>
    2828  <Obstruction>
    2929    <Static width="16.0" depth="16.0"/>
    3030  </Obstruction>
     31  <ProductionQueue disable=""/>
    3132  <RallyPoint disable=""/>
    3233  <Sound>
    3334    <SoundGroups>
    3435      <select>interface/select/building/sel_ffactri.xml</select>
    3536      <constructed>interface/complete/building/complete_ffactri.xml</constructed>
  • binaries/data/mods/public/simulation/templates/structures/gaul_rotarymill.xml

     
    2626    <Icon>structures/rotarymill.png</Icon>
    2727  </Identity>
    2828  <Obstruction>
    2929    <Static width="16.0" depth="16.0"/>
    3030  </Obstruction>
     31  <ProductionQueue disable=""/>
    3132  <RallyPoint disable=""/>
    3233  <Sound>
    3334    <SoundGroups>
    3435      <select>interface/select/building/sel_ffactri.xml</select>
    3536      <constructed>interface/complete/building/complete_ffactri.xml</constructed>
  • binaries/data/mods/public/simulation/templates/structures/iber_monument.xml

     
    3333    <History>The Iberians were a religious people who built small monuments to their various gods. These monuments could also serve as family tombs.</History>
    3434  </Identity>
    3535  <Obstruction>
    3636    <Static width="10.0" depth="10.0"/>
    3737  </Obstruction>
     38  <ProductionQueue disable=""/>
    3839  <RallyPoint disable=""/>
    3940  <Sound>
    4041    <SoundGroups>
    4142      <select>interface/select/building/sel_iber_monument.xml</select>
    4243      <constructed>interface/complete/building/complete_iber_monument.xml</constructed>
  • binaries/data/mods/public/simulation/templates/structures/mace_library.xml

     
    11<?xml version="1.0" encoding="utf-8"?>
    22<Entity parent="template_structure_special">
     3  <Auras datatype="tokens">library</Auras>
    34  <BuildRestrictions>
    45    <Category>Library</Category>
    56  </BuildRestrictions>
    67  <Footprint>
    78    <Square width="29.0" depth="34.0"/>
     
    1314  <Identity>
    1415    <Civ>mace</Civ>
    1516    <GenericName>Library</GenericName>
    1617    <SpecificName>Bibliothḗkē</SpecificName>
    1718    <Classes datatype="tokens">-ConquestCritical</Classes>
    18     <Tooltip>Research special technologies and reduce the research time of all remaining technologies.</Tooltip>
     19    <Tooltip>Research special technologies.</Tooltip>
    1920    <History>Alexander the Great founded libraries all over his new empire. These became centers of learning for an entirely new synthesized culture: the Hellenistic culture.</History>
    2021    <Icon>structures/library_scroll.png</Icon>
    2122  </Identity>
    2223  <Obstruction>
    2324    <Static width="25.0" depth="30.0"/>
  • binaries/data/mods/public/simulation/templates/structures/mace_theatron.xml

     
    2929    <Icon>structures/theatron.png</Icon>
    3030  </Identity>
    3131  <Obstruction>
    3232    <Static width="46.0" depth="46.0"/>
    3333  </Obstruction>
     34  <ProductionQueue disable=""/>
    3435  <Sound>
    3536    <SoundGroups>
    3637      <select>interface/select/building/sel_greek_theater.xml</select>
    3738      <constructed>interface/complete/building/complete_greek_theater.xml</constructed>
    3839      <death>attack/destruction/building_collapse_large.xml</death>
  • binaries/data/mods/public/simulation/templates/structures/maur_pillar_ashoka.xml

     
    3131    <Tooltip>The famous pillar of Ashoka. Increases the walk speed of traders. Buildings in the territory of the monument do not decay.</Tooltip>
    3232  </Identity>
    3333  <Obstruction>
    3434    <Static width="4" depth="4"/>
    3535  </Obstruction>
     36  <ProductionQueue disable=""/>
    3637  <RallyPoint disable=""/>
    3738  <Sound>
    3839    <SoundGroups>
    3940      <select>interface/select/building/sel_iber_monument.xml</select>
    4041      <constructed>interface/complete/building/complete_iber_monument.xml</constructed>
  • binaries/data/mods/public/simulation/templates/structures/pers_ishtar_gate.xml

     
    3333      <Right width="11" depth="13" x="12.5" z="0"/>
    3434      <Left width="11" depth="13" x="-12.5" z="0"/>
    3535      <Door width="14" depth="13" x="0" z="0"/>
    3636    </Obstructions>
    3737  </Obstruction>
     38  <ProductionQueue disable=""/>
    3839  <TerritoryInfluence>
    3940    <Root>true</Root>
    4041  </TerritoryInfluence>
    4142  <VisualActor>
    4243    <Actor>special/pers_ishtar_gate.xml</Actor>
  • binaries/data/mods/public/simulation/templates/structures/pers_palace.xml

     
    2828    <Icon>structures/palace.png</Icon>
    2929  </Identity>
    3030  <Obstruction>
    3131    <Static width="38.5" depth="22.5"/>
    3232  </Obstruction>
     33  <ProductionQueue disable=""/>
    3334  <TerritoryInfluence>
    3435    <Root>true</Root>
    3536    <Radius>48</Radius>
    3637  </TerritoryInfluence>
    3738  <VisualActor>
  • binaries/data/mods/public/simulation/templates/structures/ptol_library.xml

     
    11<?xml version="1.0" encoding="utf-8"?>
    22<Entity parent="template_structure_special">
     3  <Auras datatype="tokens">library</Auras>
    34  <BuildRestrictions>
    45    <Category>Library</Category>
    56  </BuildRestrictions>
    67  <Footprint>
    78    <Square width="29.0" depth="34.0"/>
     
    1314  <Identity>
    1415    <Civ>ptol</Civ>
    1516    <GenericName>Library</GenericName>
    1617    <SpecificName>Bibliothḗkē</SpecificName>
    1718    <Classes datatype="tokens">-ConquestCritical</Classes>
    18     <Tooltip>Research special technologies and reduce the research time of all remaining technologies.</Tooltip>
     19    <Tooltip>Research special technologies.</Tooltip>
    1920    <History>Alexander the Great founded libraries all over his new empire. These became centers of learning for an entirely new synthesized culture: the Hellenistic culture.</History>
    2021    <Icon>structures/library_scroll.png</Icon>
    2122  </Identity>
    2223  <Obstruction>
    2324    <Static width="25.0" depth="30.0"/>
  • binaries/data/mods/public/simulation/templates/structures/ptol_lighthouse.xml

     
    2626    <Static width="20.0" depth="25.0"/>
    2727  </Obstruction>
    2828  <Position>
    2929    <Floating>true</Floating>
    3030  </Position>
     31  <ProductionQueue disable=""/>
    3132  <Sound>
    3233    <SoundGroups>
    3334      <select>interface/select/building/sel_temple.xml</select>
    3435      <constructed>interface/complete/building/complete_temple.xml</constructed>
    3536      <death>attack/destruction/building_collapse_large.xml</death>
     
    4546  </Vision>
    4647  <VisualActor>
    4748    <Actor>structures/ptolemies/lighthouse.xml</Actor>
    4849    <FoundationActor>structures/fndn_4x4_dock.xml</FoundationActor>
    4950  </VisualActor>
    50 </Entity>
    51  Pas de fin de ligne à la fin du fichier
     51</Entity>
  • binaries/data/mods/public/simulation/templates/structures/rome_arch.xml

     
    2525    <Icon>structures/arch.png</Icon>
    2626  </Identity>
    2727  <Obstruction>
    2828    <Static width="18.0" depth="9.0"/>
    2929  </Obstruction>
     30  <ProductionQueue disable=""/>
    3031  <RallyPoint disable=""/>
    3132  <Sound>
    3233    <SoundGroups>
    3334      <select>interface/select/building/sel_theater.xml</select>
    3435      <constructed>interface/complete/building/complete_theatre.xml</constructed>
  • binaries/data/mods/public/simulation/templates/structures/sele_library.xml

     
    11<?xml version="1.0" encoding="utf-8"?>
    22<Entity parent="template_structure_special">
     3  <Auras datatype="tokens">library</Auras>
    34  <BuildRestrictions>
    45    <Category>Library</Category>
    56  </BuildRestrictions>
    67  <Footprint>
    78    <Square width="29.0" depth="34.0"/>
     
    1314  <Identity>
    1415    <Civ>sele</Civ>
    1516    <GenericName>Library</GenericName>
    1617    <SpecificName>Bibliothikon</SpecificName>
    1718    <Classes datatype="tokens">-ConquestCritical</Classes>
    18     <Tooltip>Research special technologies and reduce the research time of all remaining technologies.</Tooltip>
     19    <Tooltip>Research special technologies.</Tooltip>
    1920    <History>Alexander the Great founded libraries all over his new empire. These became centers of learning for an entirely new synthesized culture: the Hellenistic culture.</History>
    2021    <Icon>structures/library_scroll.png</Icon>
    2122  </Identity>
    2223  <Obstruction>
    2324    <Static width="25.0" depth="30.0"/>
  • binaries/data/mods/public/simulation/templates/structures/spart_theatron.xml

     
    2929    <Icon>structures/theatron.png</Icon>
    3030  </Identity>
    3131  <Obstruction>
    3232    <Static width="46.0" depth="46.0"/>
    3333  </Obstruction>
     34  <ProductionQueue disable=""/>
    3435  <Sound>
    3536    <SoundGroups>
    3637      <select>interface/select/building/sel_greek_theater.xml</select>
    3738      <constructed>interface/complete/building/complete_greek_theater.xml</constructed>
    3839      <death>attack/destruction/building_collapse_large.xml</death>
  • binaries/data/mods/public/simulation/templates/structures/theb_theatron.xml

     
    2929    <Icon>structures/theatron.png</Icon>
    3030  </Identity>
    3131  <Obstruction>
    3232    <Static width="46.0" depth="46.0"/>
    3333  </Obstruction>
     34  <ProductionQueue disable=""/>
    3435  <Sound>
    3536    <SoundGroups>
    3637      <select>interface/select/building/sel_theater.xml</select>
    3738      <constructed>interface/complete/building/complete_theatre.xml</constructed>
    3839      <death>attack/destruction/building_collapse_large.xml</death>
  • binaries/data/mods/public/simulation/templates/template_structure.xml

     
    6969    <BlockConstruction>true</BlockConstruction>
    7070    <DisableBlockMovement>false</DisableBlockMovement>
    7171    <DisableBlockPathfinding>false</DisableBlockPathfinding>
    7272  </Obstruction>
    7373  <OverlayRenderer/>
     74  <ProductionQueue>
     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>
     82  </ProductionQueue>
    7483  <RallyPoint/>
    7584  <RallyPointRenderer>
    7685    <MarkerTemplate>special/rallypoint</MarkerTemplate>
    7786    <LineTexture>art/textures/misc/rallypoint_line.png</LineTexture>
    7887    <LineTextureMask>art/textures/misc/rallypoint_line_mask.png</LineTextureMask>
  • binaries/data/mods/public/simulation/templates/template_structure_defense_wall.xml

     
    3737    <metal>0</metal>
    3838  </Loot>
    3939  <Obstruction>
    4040    <Static width="6.0" depth="6.0"/>
    4141  </Obstruction>
     42  <ProductionQueue disable=""/>
    4243  <RallyPoint disable=""/>
    4344  <Sound>
    4445    <SoundGroups>
    4546      <select>interface/select/building/sel_wall.xml</select>
    4647      <constructed>interface/complete/building/complete_wall.xml</constructed>
  • binaries/data/mods/public/simulation/templates/template_structure_defense_wall_gate.xml

     
    4343      <Right width="5" depth="5" x="10" z="0"/>
    4444      <Left width="5" depth="5" x="-10" z="0"/>
    4545      <Door width="20.0" depth="6.5" x="0" z="0"/>
    4646    </Obstructions>
    4747  </Obstruction>
     48  <ProductionQueue disable=""/>
    4849  <RallyPoint disable=""/>
    4950  <Sound>
    5051    <SoundGroups>
    5152      <select>interface/select/building/sel_gate.xml</select>
    5253      <constructed>interface/complete/building/complete_gate.xml</constructed>
  • 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>
  • binaries/data/mods/public/simulation/templates/template_structure_resource_field.xml

     
    4343  <Obstruction>
    4444    <Static width="22.0" depth="22.0"/>
    4545    <BlockMovement>false</BlockMovement>
    4646    <BlockPathfinding>false</BlockPathfinding>
    4747  </Obstruction>
     48  <ProductionQueue disable=""/>
    4849  <RallyPoint disable=""/>
    4950  <ResourceSupply>
    5051    <KillBeforeGather>false</KillBeforeGather>
    5152    <Amount>Infinity</Amount>
    5253    <Type>food.grain</Type>
  • 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>