0ad/binaries/data/mods/public/simulation/templates/template_unit_infantry.xml

115 lines
3.7 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<Entity parent="builder|template_unit">
<Attack>
<Capture>
<AttackName>Capture</AttackName>
<Capture>2.5</Capture>
<MaxRange>4</MaxRange>
<RepeatTime>1000</RepeatTime>
<RestrictedClasses datatype="tokens">Field Palisade Wall</RestrictedClasses>
</Capture>
<Slaughter>
<AttackName>Slaughter</AttackName>
<Damage>
<Hack>1000</Hack>
</Damage>
<MaxRange>2</MaxRange>
<PrepareTime>900</PrepareTime>
<RepeatTime>1000</RepeatTime>
<RestrictedClasses datatype="tokens">!Domestic</RestrictedClasses>
</Slaughter>
</Attack>
<Auras datatype="tokens">
units/ram_garrison
</Auras>
<Cost>
<BuildTime>10</BuildTime>
<Resources>
<food>50</food>
<wood>0</wood>
<stone>0</stone>
<metal>0</metal>
</Resources>
</Cost>
<Health>
<Max>80</Max>
</Health>
<Identity>
<GenericName>Infantry</GenericName>
<Classes datatype="tokens">Human CitizenSoldier</Classes>
<VisibleClasses datatype="tokens">Citizen Worker Soldier Infantry</VisibleClasses>
<Rank>Basic</Rank>
</Identity>
<Loot>
<xp>100</xp>
<food>5</food>
<wood>0</wood>
<stone>0</stone>
<metal>0</metal>
</Loot>
<Position>
<Anchor>upright</Anchor>
</Position>
<Promotion>
<RequiredXp>100</RequiredXp>
</Promotion>
<Resistance>
<Entity>
<Damage>
<Hack>2</Hack>
<Pierce>4</Pierce>
<Crush>15</Crush>
</Damage>
</Entity>
</Resistance>
<ResourceGatherer>
<MaxDistance>2.0</MaxDistance>
<BaseSpeed>1.0</BaseSpeed>
<Rates>
<food.fruit>0.5</food.fruit>
<food.grain>0.25</food.grain>
<food.meat>1</food.meat>
<wood.tree>0.75</wood.tree>
<wood.ruins>5</wood.ruins>
<stone.rock>0.5</stone.rock>
<stone.ruins>2</stone.ruins>
<metal.ore>0.5</metal.ore>
<metal.ruins>2</metal.ruins>
</Rates>
<Capacities>
<food>10</food>
<wood>10</wood>
<stone>10</stone>
<metal>10</metal>
</Capacities>
</ResourceGatherer>
<Sound>
<SoundGroups>
<attack_slaughter>attack/weapon/knife_attack.xml</attack_slaughter>
<order_attack>voice/{lang}/civ/civ_{phenotype}_attack.xml</order_attack>
<order_attack_move>voice/{lang}/civ/civ_{phenotype}_attack.xml</order_attack_move>
<order_build>voice/{lang}/civ/civ_{phenotype}_build.xml</order_build>
<order_garrison>voice/{lang}/civ/civ_{phenotype}_garrison.xml</order_garrison>
<order_gather>voice/{lang}/civ/civ_{phenotype}_gather.xml</order_gather>
<order_repair>voice/{lang}/civ/civ_{phenotype}_repair.xml</order_repair>
<order_walk>voice/{lang}/civ/civ_{phenotype}_walk.xml</order_walk>
<select>voice/{lang}/civ/civ_{phenotype}_select.xml</select>
<walk>actor/human/movement/walk.xml</walk>
<run>actor/human/movement/run.xml</run>
<death>actor/human/death/{phenotype}_death.xml</death>
<build>resource/construction/con_wood.xml</build>
<gather_fruit>resource/foraging/forage_leaves.xml</gather_fruit>
<gather_grain>resource/farming/farm.xml</gather_grain>
<gather_meat>resource/gathering/gather_meat.xml</gather_meat>
<gather_tree>resource/lumbering/lumbering.xml</gather_tree>
<gather_rock>resource/mining/pickaxe.xml</gather_rock>
<gather_ore>resource/mining/mining.xml</gather_ore>
<gather_ruins>resource/mining/mining.xml</gather_ruins>
<trained>interface/alarm/alarm_create_infantry.xml</trained>
<invalid_building_placement>interface/alarm/alarm_invalid_building_placement.xml</invalid_building_placement>
</SoundGroups>
</Sound>
<Vision>
<Range>10</Range>
</Vision>
</Entity>