Ticket #3930: 3930.9.diff
File 3930.9.diff, 34.3 KB (added by , 8 years ago) |
---|
-
binaries/data/mods/public/globalscripts/Templates.js
function GetTemplateDataHelper(template, 245 245 }; 246 246 if (template.UnitMotion.Run) 247 247 ret.speed.run = func("UnitMotion/Run/Speed", +template.UnitMotion.Run.Speed, player, template); 248 248 } 249 249 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 250 257 if (template.Trader) 251 258 { 252 259 ret.trader = { 253 260 "GainMultiplier": func("Trader/GainMultiplier", +template.Trader.GainMultiplier, player, template) 254 261 }; -
binaries/data/mods/public/gui/session/selection_panels.js
g_SelectionPanels.Research = { 802 802 data.entType = data.item.pair ? [data.item.top, data.item.bottom] : [data.item]; 803 803 data.template = data.entType.map(GetTechnologyData); 804 804 // abort if no template found for any of the techs 805 805 if (data.template.some(v => !v)) 806 806 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 807 812 // index one row below 808 813 var shiftedIndex = data.i + data.rowLength; 809 814 data.positions = data.item.pair ? [data.i, shiftedIndex] : [shiftedIndex]; 810 815 data.positionsToHide = data.item.pair ? [] : [data.i]; 811 816 -
binaries/data/mods/public/gui/structree/draw.js
function draw() 69 69 if (stru.production.technology[prod_pha]) 70 70 { 71 71 for (let prod of stru.production.technology[prod_pha]) 72 72 { 73 73 prod = (depath(prod).slice(0,5) == "phase") ? g_ParsedData.phases[prod] : g_ParsedData.techs[prod]; 74 if (prod.cost && stru.techCostMultiplier) 75 for (let res in prod.cost) 76 prod.cost[res] *= stru.techCostMultiplier[res]; 74 77 if (!drawProdIcon(i, s, r, p, prod)) 75 78 break; 76 79 p++; 77 80 } 78 81 } -
binaries/data/mods/public/simulation/components/GuiInterface.js
GuiInterface.prototype.GetEntityState = 306 306 let cmpProductionQueue = Engine.QueryInterface(ent, IID_ProductionQueue); 307 307 if (cmpProductionQueue) 308 308 ret.production = { 309 309 "entities": cmpProductionQueue.GetEntitiesList(), 310 310 "technologies": cmpProductionQueue.GetTechnologiesList(), 311 "queue": cmpProductionQueue.GetQueue(), 311 "techCostMultiplier": cmpProductionQueue.GetTechCostMultiplier(), 312 "queue": cmpProductionQueue.GetQueue() 312 313 }; 313 314 314 315 let cmpTrader = Engine.QueryInterface(ent, IID_Trader); 315 316 if (cmpTrader) 316 317 ret.trader = { -
binaries/data/mods/public/simulation/components/ProductionQueue.js
ProductionQueue.prototype.Schema = 27 27 "<attribute name='datatype'>" + 28 28 "<value>tokens</value>" + 29 29 "</attribute>" + 30 30 "<text/>" + 31 31 "</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>"; 33 42 34 43 ProductionQueue.prototype.Init = function() 35 44 { 36 45 this.nextID = 1; 37 46 … … ProductionQueue.prototype.GetTechnologie 214 223 } 215 224 216 225 return ret; 217 226 }; 218 227 228 ProductionQueue.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 219 236 ProductionQueue.prototype.IsTechnologyResearchedOrInProgress = function(tech) 220 237 { 221 238 if (!tech) 222 239 return false; 223 240 … … ProductionQueue.prototype.AddBatch = fun 319 336 var cmpDataTemplateManager = Engine.QueryInterface(SYSTEM_ENTITY, IID_DataTemplateManager); 320 337 var template = cmpDataTemplateManager.GetTechnologyTemplate(templateName); 321 338 if (!template) 322 339 return; 323 340 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(); 325 343 326 344 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 330 348 // TrySubtractResources should report error to player (they ran out of resources) 331 349 if (!cmpPlayer.TrySubtractResources(cost)) 332 350 return; 333 351 334 352 // 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/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 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
32 32 <Color r="119" g="82" b="46"/> 33 33 </Minimap> 34 34 <Obstruction> 35 35 <Static width="1.5" depth="4.0"/> 36 36 </Obstruction> 37 <ProductionQueue disable=""/> 37 38 <StatusBars> 38 39 <HeightOffset>6.0</HeightOffset> 39 40 </StatusBars> 40 41 <Vision> 41 42 <Range>4</Range> -
binaries/data/mods/public/simulation/templates/other/bridge_hele.xml
22 22 <Obstruction> 23 23 <Obstructions> 24 24 <Edge width="59" depth="4" x="0" z="5"/> 25 25 </Obstructions> 26 26 </Obstruction> 27 <ProductionQueue disable=""/> 27 28 <Selectable> 28 29 <EditorOnly/> 29 30 </Selectable> 30 31 <Vision> 31 32 <Range>72</Range> -
binaries/data/mods/public/simulation/templates/other/bridge_wooden.xml
21 21 <Obstruction> 22 22 <Obstructions> 23 23 <Edge width="59" depth="4" x="0" z="5"/> 24 24 </Obstructions> 25 25 </Obstruction> 26 <ProductionQueue disable=""/> 26 27 <Minimap disable=""/> 27 28 <Selectable> 28 29 <EditorOnly/> 29 30 </Selectable> 30 31 <Vision> -
binaries/data/mods/public/simulation/templates/other/column_doric.xml
30 30 <metal>0</metal> 31 31 </Loot> 32 32 <Obstruction> 33 33 <Static width="2.0" depth="2.0"/> 34 34 </Obstruction> 35 <ProductionQueue disable=""/> 35 36 <StatusBars> 36 37 <HeightOffset>8.0</HeightOffset> 37 38 </StatusBars> 38 39 <Vision> 39 40 <Range>4</Range> -
binaries/data/mods/public/simulation/templates/other/column_doric_fallen.xml
29 29 <metal>0</metal> 30 30 </Loot> 31 31 <Obstruction> 32 32 <Static width="2.0" depth="12.0"/> 33 33 </Obstruction> 34 <ProductionQueue disable=""/> 34 35 <StatusBars> 35 36 <HeightOffset>6.0</HeightOffset> 36 37 </StatusBars> 37 38 <Vision> 38 39 <Range>4</Range> -
binaries/data/mods/public/simulation/templates/other/column_doric_fallen_b.xml
30 30 <metal>0</metal> 31 31 </Loot> 32 32 <Obstruction> 33 33 <Static width="2.0" depth="2.0"/> 34 34 </Obstruction> 35 <ProductionQueue disable=""/> 35 36 <StatusBars> 36 37 <HeightOffset>6.0</HeightOffset> 37 38 </StatusBars> 38 39 <Vision> 39 40 <Range>4</Range> -
binaries/data/mods/public/simulation/templates/other/fence_long.xml
33 33 <Color r="119" g="82" b="46"/> 34 34 </Minimap> 35 35 <Obstruction> 36 36 <Static width="1.5" depth="13.0"/> 37 37 </Obstruction> 38 <ProductionQueue disable=""/> 38 39 <StatusBars> 39 40 <HeightOffset>6.0</HeightOffset> 40 41 </StatusBars> 41 42 <TerritoryDecay disable=""/> 42 43 <Vision> -
binaries/data/mods/public/simulation/templates/other/fence_short.xml
33 33 <Color r="119" g="82" b="46"/> 34 34 </Minimap> 35 35 <Obstruction> 36 36 <Static width="1.5" depth="6.5"/> 37 37 </Obstruction> 38 <ProductionQueue disable=""/> 38 39 <StatusBars> 39 40 <HeightOffset>6.0</HeightOffset> 40 41 </StatusBars> 41 42 <TerritoryDecay disable=""/> 42 43 <Visibility> -
binaries/data/mods/public/simulation/templates/other/fence_stone.xml
30 30 <metal>0</metal> 31 31 </Loot> 32 32 <Obstruction> 33 33 <Static width="1.5" depth="10.5"/> 34 34 </Obstruction> 35 <ProductionQueue disable=""/> 35 36 <StatusBars> 36 37 <HeightOffset>6.0</HeightOffset> 37 38 </StatusBars> 38 39 <TerritoryDecay disable=""/> 39 40 <Vision> -
binaries/data/mods/public/simulation/templates/other/hellenic_propylaea.xml
36 36 <metal>75</metal> 37 37 </Loot> 38 38 <Obstruction> 39 39 <Static width="26.0" depth="30.0"/> 40 40 </Obstruction> 41 <ProductionQueue disable=""/> 41 42 <TerritoryInfluence> 42 43 <Root>false</Root> 43 44 <Radius>40</Radius> 44 45 <Weight>65535</Weight> 45 46 </TerritoryInfluence> -
binaries/data/mods/public/simulation/templates/other/hellenic_stoa.xml
36 36 <metal>50</metal> 37 37 </Loot> 38 38 <Obstruction> 39 39 <Static width="26.0" depth="10.5"/> 40 40 </Obstruction> 41 <ProductionQueue disable=""/> 41 42 <RallyPoint disable=""/> 42 43 <TerritoryInfluence> 43 44 <Root>false</Root> 44 45 <Radius>36</Radius> 45 46 <Weight>65535</Weight> -
binaries/data/mods/public/simulation/templates/other/obelisk.xml
31 31 <metal>200</metal> 32 32 </Loot> 33 33 <Obstruction> 34 34 <Static width="4.0" depth="4.0"/> 35 35 </Obstruction> 36 <ProductionQueue disable=""/> 36 37 <TerritoryDecay disable=""/> 37 38 <Vision> 38 39 <Range>12</Range> 39 40 </Vision> 40 41 <VisualActor> -
binaries/data/mods/public/simulation/templates/other/table_rectangle.xml
32 32 <Color r="119" g="82" b="46"/> 33 33 </Minimap> 34 34 <Obstruction> 35 35 <Static width="3.5" depth="4.75"/> 36 36 </Obstruction> 37 <ProductionQueue disable=""/> 37 38 <StatusBars> 38 39 <HeightOffset>6.0</HeightOffset> 39 40 </StatusBars> 40 41 <TerritoryDecay disable=""/> 41 42 <Vision> -
binaries/data/mods/public/simulation/templates/other/table_square.xml
32 32 <Color r="119" g="82" b="46"/> 33 33 </Minimap> 34 34 <Obstruction> 35 35 <Static width="4.0" depth="4.0"/> 36 36 </Obstruction> 37 <ProductionQueue disable=""/> 37 38 <StatusBars> 38 39 <HeightOffset>6.0</HeightOffset> 39 40 </StatusBars> 40 41 <TerritoryDecay disable=""/> 41 42 <Vision> -
binaries/data/mods/public/simulation/templates/structures/athen_theatron.xml
29 29 <Icon>structures/theatron.png</Icon> 30 30 </Identity> 31 31 <Obstruction> 32 32 <Static width="46.0" depth="46.0"/> 33 33 </Obstruction> 34 <ProductionQueue disable=""/> 34 35 <Sound> 35 36 <SoundGroups> 36 37 <select>interface/select/building/sel_greek_theater.xml</select> 37 38 <constructed>interface/complete/building/complete_greek_theater.xml</constructed> 38 39 <death>attack/destruction/building_collapse_large.xml</death> -
binaries/data/mods/public/simulation/templates/structures/brit_rotarymill.xml
26 26 <Icon>structures/rotarymill.png</Icon> 27 27 </Identity> 28 28 <Obstruction> 29 29 <Static width="16.0" depth="16.0"/> 30 30 </Obstruction> 31 <ProductionQueue disable=""/> 31 32 <RallyPoint disable=""/> 32 33 <Sound> 33 34 <SoundGroups> 34 35 <select>interface/select/building/sel_ffactri.xml</select> 35 36 <constructed>interface/complete/building/complete_ffactri.xml</constructed> -
binaries/data/mods/public/simulation/templates/structures/gaul_rotarymill.xml
26 26 <Icon>structures/rotarymill.png</Icon> 27 27 </Identity> 28 28 <Obstruction> 29 29 <Static width="16.0" depth="16.0"/> 30 30 </Obstruction> 31 <ProductionQueue disable=""/> 31 32 <RallyPoint disable=""/> 32 33 <Sound> 33 34 <SoundGroups> 34 35 <select>interface/select/building/sel_ffactri.xml</select> 35 36 <constructed>interface/complete/building/complete_ffactri.xml</constructed> -
binaries/data/mods/public/simulation/templates/structures/iber_monument.xml
33 33 <History>The Iberians were a religious people who built small monuments to their various gods. These monuments could also serve as family tombs.</History> 34 34 </Identity> 35 35 <Obstruction> 36 36 <Static width="10.0" depth="10.0"/> 37 37 </Obstruction> 38 <ProductionQueue disable=""/> 38 39 <RallyPoint disable=""/> 39 40 <Sound> 40 41 <SoundGroups> 41 42 <select>interface/select/building/sel_iber_monument.xml</select> 42 43 <constructed>interface/complete/building/complete_iber_monument.xml</constructed> -
binaries/data/mods/public/simulation/templates/structures/mace_theatron.xml
29 29 <Icon>structures/theatron.png</Icon> 30 30 </Identity> 31 31 <Obstruction> 32 32 <Static width="46.0" depth="46.0"/> 33 33 </Obstruction> 34 <ProductionQueue disable=""/> 34 35 <Sound> 35 36 <SoundGroups> 36 37 <select>interface/select/building/sel_greek_theater.xml</select> 37 38 <constructed>interface/complete/building/complete_greek_theater.xml</constructed> 38 39 <death>attack/destruction/building_collapse_large.xml</death> -
binaries/data/mods/public/simulation/templates/structures/pers_ishtar_gate.xml
33 33 <Right width="11" depth="13" x="12.5" z="0"/> 34 34 <Left width="11" depth="13" x="-12.5" z="0"/> 35 35 <Door width="14" depth="13" x="0" z="0"/> 36 36 </Obstructions> 37 37 </Obstruction> 38 <ProductionQueue disable=""/> 38 39 <TerritoryInfluence> 39 40 <Root>true</Root> 40 41 </TerritoryInfluence> 41 42 <VisualActor> 42 43 <Actor>special/pers_ishtar_gate.xml</Actor> -
binaries/data/mods/public/simulation/templates/structures/pers_palace.xml
28 28 <Icon>structures/palace.png</Icon> 29 29 </Identity> 30 30 <Obstruction> 31 31 <Static width="38.5" depth="22.5"/> 32 32 </Obstruction> 33 <ProductionQueue disable=""/> 33 34 <TerritoryInfluence> 34 35 <Root>true</Root> 35 36 <Radius>48</Radius> 36 37 </TerritoryInfluence> 37 38 <VisualActor> -
binaries/data/mods/public/simulation/templates/structures/ptol_lighthouse.xml
26 26 <Static width="20.0" depth="25.0"/> 27 27 </Obstruction> 28 28 <Position> 29 29 <Floating>true</Floating> 30 30 </Position> 31 <ProductionQueue disable=""/> 31 32 <Sound> 32 33 <SoundGroups> 33 34 <select>interface/select/building/sel_temple.xml</select> 34 35 <constructed>interface/complete/building/complete_temple.xml</constructed> 35 36 <death>attack/destruction/building_collapse_large.xml</death> … … 45 46 </Vision> 46 47 <VisualActor> 47 48 <Actor>structures/ptolemies/lighthouse.xml</Actor> 48 49 <FoundationActor>structures/fndn_4x4_dock.xml</FoundationActor> 49 50 </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
25 25 <Icon>structures/arch.png</Icon> 26 26 </Identity> 27 27 <Obstruction> 28 28 <Static width="18.0" depth="9.0"/> 29 29 </Obstruction> 30 <ProductionQueue disable=""/> 30 31 <RallyPoint disable=""/> 31 32 <Sound> 32 33 <SoundGroups> 33 34 <select>interface/select/building/sel_theater.xml</select> 34 35 <constructed>interface/complete/building/complete_theatre.xml</constructed> -
binaries/data/mods/public/simulation/templates/structures/spart_theatron.xml
29 29 <Icon>structures/theatron.png</Icon> 30 30 </Identity> 31 31 <Obstruction> 32 32 <Static width="46.0" depth="46.0"/> 33 33 </Obstruction> 34 <ProductionQueue disable=""/> 34 35 <Sound> 35 36 <SoundGroups> 36 37 <select>interface/select/building/sel_greek_theater.xml</select> 37 38 <constructed>interface/complete/building/complete_greek_theater.xml</constructed> 38 39 <death>attack/destruction/building_collapse_large.xml</death> -
binaries/data/mods/public/simulation/templates/structures/theb_theatron.xml
29 29 <Icon>structures/theatron.png</Icon> 30 30 </Identity> 31 31 <Obstruction> 32 32 <Static width="46.0" depth="46.0"/> 33 33 </Obstruction> 34 <ProductionQueue disable=""/> 34 35 <Sound> 35 36 <SoundGroups> 36 37 <select>interface/select/building/sel_theater.xml</select> 37 38 <constructed>interface/complete/building/complete_theatre.xml</constructed> 38 39 <death>attack/destruction/building_collapse_large.xml</death> -
binaries/data/mods/public/simulation/templates/template_structure.xml
69 69 <BlockConstruction>true</BlockConstruction> 70 70 <DisableBlockMovement>false</DisableBlockMovement> 71 71 <DisableBlockPathfinding>false</DisableBlockPathfinding> 72 72 </Obstruction> 73 73 <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> 74 83 <RallyPoint/> 75 84 <RallyPointRenderer> 76 85 <MarkerTemplate>special/rallypoint</MarkerTemplate> 77 86 <LineTexture>art/textures/misc/rallypoint_line.png</LineTexture> 78 87 <LineTextureMask>art/textures/misc/rallypoint_line_mask.png</LineTextureMask> -
binaries/data/mods/public/simulation/templates/template_structure_defense_wall.xml
37 37 <metal>0</metal> 38 38 </Loot> 39 39 <Obstruction> 40 40 <Static width="6.0" depth="6.0"/> 41 41 </Obstruction> 42 <ProductionQueue disable=""/> 42 43 <RallyPoint disable=""/> 43 44 <Sound> 44 45 <SoundGroups> 45 46 <select>interface/select/building/sel_wall.xml</select> 46 47 <constructed>interface/complete/building/complete_wall.xml</constructed> -
binaries/data/mods/public/simulation/templates/template_structure_defense_wall_gate.xml
43 43 <Right width="5" depth="5" x="10" z="0"/> 44 44 <Left width="5" depth="5" x="-10" z="0"/> 45 45 <Door width="20.0" depth="6.5" x="0" z="0"/> 46 46 </Obstructions> 47 47 </Obstruction> 48 <ProductionQueue disable=""/> 48 49 <RallyPoint disable=""/> 49 50 <Sound> 50 51 <SoundGroups> 51 52 <select>interface/select/building/sel_gate.xml</select> 52 53 <constructed>interface/complete/building/complete_gate.xml</constructed> -
binaries/data/mods/public/simulation/templates/template_structure_military_blacksmith.xml
15 15 </Footprint> 16 16 <GarrisonHolder> 17 17 <Max>1</Max> 18 18 <EjectHealth>0.1</EjectHealth> 19 19 <EjectClassesOnDestroy datatype="tokens">Unit</EjectClassesOnDestroy> 20 <List datatype="tokens">Infantry </List>20 <List datatype="tokens">Infantry Healer</List> 21 21 <BuffHeal>0</BuffHeal> 22 22 <LoadingRange>2</LoadingRange> 23 23 </GarrisonHolder> 24 24 <Health> 25 25 <Max>2000</Max> -
binaries/data/mods/public/simulation/templates/template_structure_resource_field.xml
43 43 <Obstruction> 44 44 <Static width="22.0" depth="22.0"/> 45 45 <BlockMovement>false</BlockMovement> 46 46 <BlockPathfinding>false</BlockPathfinding> 47 47 </Obstruction> 48 <ProductionQueue disable=""/> 48 49 <RallyPoint disable=""/> 49 50 <ResourceSupply> 50 51 <KillBeforeGather>false</KillBeforeGather> 51 52 <Amount>Infinity</Amount> 52 53 <Type>food.grain</Type> -
binaries/data/mods/public/simulation/templates/units/athen_ship_trireme.xml
11 11 <BatchTimeModifier>0.7</BatchTimeModifier> 12 12 <Entities datatype="tokens"> 13 13 units/athen_infantry_marine_archer_b 14 14 units/athen_champion_marine 15 15 </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> 16 23 </ProductionQueue> 17 24 <VisualActor> 18 25 <Actor>structures/athenians/trireme.xml</Actor> 19 26 </VisualActor> 20 27 </Entity> -
binaries/data/mods/public/simulation/templates/units/maur_hero_ashoka.xml
1 1 <?xml version="1.0" encoding="utf-8"?> 2 2 <Entity parent="template_unit_hero_cavalry_archer"> 3 <Auras datatype="tokens">maur_hero_ashoka</Auras> 3 4 <Footprint replace=""> 4 5 <Square width="6.0" depth="12.0"/> 5 6 <Height>5.0</Height> 6 7 </Footprint> 7 8 <Identity> -
binaries/data/mods/public/simulation/templates/units/maur_hero_chanakya.xml
3 3 <Armour> 4 4 <Hack>4.0</Hack> 5 5 <Pierce>8.0</Pierce> 6 6 <Crush>4.0</Crush> 7 7 </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> 15 9 <Cost> 16 10 <Population>2</Population> 17 11 <BuildTime>60</BuildTime> 18 12 <Resources> 19 13 <food>100</food> 20 14 <metal>250</metal> 21 15 </Resources> 22 16 </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> 23 24 <Health> 24 25 <Max>600</Max> 25 26 </Health> 26 27 <Identity> 27 28 <Civ>maur</Civ> 28 <Classes datatype="tokens">Human Organic </Classes>29 <Classes datatype="tokens">Human Organic Support</Classes> 29 30 <VisibleClasses datatype="tokens">Hero Healer</VisibleClasses> 30 31 <GenericName>Acharya Chanakya</GenericName> 31 32 <SpecificName>Acharya Chāṇakya</SpecificName> 32 33 <Icon>units/maur_hero_chanakya.png</Icon> 33 34 <Tooltip>Hero Special: "Healer" - Heal units at an accelerated rate. 34 Hero Special: "Teacher" - Empower a building to research and train +50% faster.35 35 Hero Special: "Philosopher" - Research 4 special technologies only available to Chanakya.</Tooltip> 36 36 <RequiredTechnology>phase_city</RequiredTechnology> 37 37 </Identity> 38 38 <Minimap> 39 39 <Type>hero</Type> -
binaries/data/mods/public/simulation/templates/units/maur_hero_maurya.xml
9 9 <ProductionQueue> 10 10 <BatchTimeModifier>0.7</BatchTimeModifier> 11 11 <Entities datatype="tokens"> 12 12 units/maur_champion_maiden_archer 13 13 </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> 14 21 </ProductionQueue> 15 22 <VisualActor> 16 23 <Actor>units/mauryans/elephant_hero.xml</Actor> 17 24 </VisualActor> 18 25 </Entity> -
binaries/data/mods/public/simulation/templates/units/pers_hero_cyrus.xml
11 11 <ProductionQueue> 12 12 <BatchTimeModifier>0.7</BatchTimeModifier> 13 13 <Entities datatype="tokens"> 14 14 units/pers_champion_infantry 15 15 </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> 16 23 </ProductionQueue> 17 24 <VisualActor> 18 25 <Actor>units/persians/hero_cyrus.xml</Actor> 19 26 </VisualActor> 20 27 </Entity> -
binaries/data/mods/public/simulation/templates/units/pers_ship_trireme.xml
15 15 <BatchTimeModifier>0.8</BatchTimeModifier> 16 16 <Entities datatype="tokens"> 17 17 units/pers_cavalry_swordsman_b_trireme 18 18 units/pers_cavalry_javelinist_b_trireme 19 19 </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> 20 27 </ProductionQueue> 21 28 <VisualActor> 22 29 <Actor>structures/persians/trireme.xml</Actor> 23 30 </VisualActor> 24 31 </Entity>