Changeset View
Standalone View
binaries/data/mods/public/simulation/templates/template_structure_military_stable.xml
- This file was moved from binaries/data/mods/public/simulation/templates/template_structure_military_barracks_stables.xml.
<?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||||
<Entity parent="template_structure_military_barracks"> | <Entity parent="template_structure_military"> | ||||
<BuildRestrictions> | |||||
<Category>Stable</Category> | |||||
</BuildRestrictions> | |||||
<Cost> | |||||
<BuildTime>150</BuildTime> | |||||
<Resources> | |||||
<wood>300</wood> | |||||
</Resources> | |||||
</Cost> | |||||
<GarrisonHolder> | <GarrisonHolder> | ||||
<List datatype="tokens">Cavalry -Infantry</List> | <Max>10</Max> | ||||
<EjectHealth>0.1</EjectHealth> | |||||
<EjectClassesOnDestroy datatype="tokens">Unit</EjectClassesOnDestroy> | |||||
<List datatype="tokens">Cavalry</List> | |||||
<BuffHeal>0</BuffHeal> | |||||
<LoadingRange>2</LoadingRange> | |||||
</GarrisonHolder> | </GarrisonHolder> | ||||
<Health> | |||||
<Max>2000</Max> | |||||
</Health> | |||||
<Identity> | <Identity> | ||||
<GenericName>Stables</GenericName> | <GenericName>Stable</GenericName> | ||||
<Tooltip>Train citizen-soldier cavalry. Research training improvements.</Tooltip> | <Tooltip>Train citizen-soldier cavalry. Research training improvements.</Tooltip> | ||||
<Icon>structures/barracks.png</Icon> | <VisibleClasses datatype="tokens">Village Stable</VisibleClasses> | ||||
<Classes datatype="tokens">Stables</Classes> | <Icon>structures/pers_stable.png</Icon> | ||||
<RequiredTechnology>phase_village</RequiredTechnology> | |||||
</Identity> | </Identity> | ||||
<Loot> | |||||
<wood>30</wood> | |||||
<stone>10</stone> | |||||
bb: k | |||||
</Loot> | |||||
<Obstruction> | |||||
<Static width="17.0" depth="17.0"/> | |||||
</Obstruction> | |||||
<ProductionQueue> | <ProductionQueue> | ||||
<BatchTimeModifier>0.8</BatchTimeModifier> | <BatchTimeModifier>0.8</BatchTimeModifier> | ||||
<Entities datatype="tokens"> | <Entities datatype="tokens"> | ||||
-units/{civ}_infantry_spearman_b | |||||
-units/{civ}_infantry_pikeman_b | |||||
-units/{civ}_infantry_swordsman_b | |||||
units/{civ}_cavalry_swordsman_b | units/{civ}_cavalry_swordsman_b | ||||
units/{civ}_cavalry_spearman_b | units/{civ}_cavalry_spearman_b | ||||
units/{civ}_cavalry_javelinist_b | units/{civ}_cavalry_javelinist_b | ||||
units/{civ}_cavalry_archer_b | units/{civ}_cavalry_archer_b | ||||
</Entities> | </Entities> | ||||
<Technologies datatype="tokens"> | |||||
heal_barracks | |||||
persians/training_levy_cavalry | |||||
persians/training_conscription_cavalry | |||||
successors/special_war_horses | |||||
Not Done Inline Actionsas the foldering suggests these techs are meant to be for the pers/successors only, thus shouldn't be in the parent bb: as the foldering suggests these techs are meant to be for the pers/successors only, thus… | |||||
Done Inline ActionsThose technologies have a required civ, so they'll only show up to Persians. Defining them here in the parent template has the advantage that it's less likely to forget adding them in the child templates; moreover, it means Persians can research these technologies at any (captured) stable, not only those built by pers. (However, only Persian stables are currently used, so effectively this changes nothing in the current situation.) Nescio: Those technologies have a required civ, so they'll only show up to Persians. Defining them here… | |||||
Not Done Inline Actionsright bb: right | |||||
Done Inline ActionsFor comparison, template_structure_military_workship.xml includes “siege_bolt_accuracy” in its technology list, even though that's available to only a minority of civs. Nescio: For comparison, `template_structure_military_workship.xml` includes “siege_bolt_accuracy” in… | |||||
Not Done Inline ActionsThanks for being so persistent, saved a nice inconsistency bb: Thanks for being so persistent, saved a nice inconsistency | |||||
</Technologies> | |||||
</ProductionQueue> | </ProductionQueue> | ||||
<Sound> | |||||
<SoundGroups> | |||||
<constructed>interface/complete/building/complete_cavalry_stables.xml</constructed> | |||||
<death>attack/destruction/building_collapse_large.xml</death> | |||||
<select>interface/select/building/sel_cavalry_stables.xml</select> | |||||
</SoundGroups> | |||||
</Sound> | |||||
<TerritoryInfluence> | |||||
<Root>false</Root> | |||||
<Radius>50</Radius> | |||||
<Weight>40000</Weight> | |||||
</TerritoryInfluence> | |||||
<Vision> | |||||
<Range>32</Range> | |||||
</Vision> | |||||
</Entity> | </Entity> |
k