[Gameplay] Fix Ministers being able to capture fields, palisades and walls.
[0ad.git] / binaries / data / mods / public / simulation / templates / units / han / support_minister.xml
blob57cdfb77c259abfb8ad6f0c2382cb5156eb54de5
1 <?xml version="1.0" encoding="utf-8"?>
2 <Entity parent="template_unit_support">
3   <Attack>
4     <Capture>
5       <AttackName>Capture</AttackName>
6       <Capture>8</Capture>
7       <MaxRange>4</MaxRange>
8       <RepeatTime>1000</RepeatTime>
9       <RestrictedClasses datatype="tokens">Field Palisade Wall</RestrictedClasses>
10     </Capture>
11     <Melee>
12       <AttackName context="Name of an attack using a double-edged sword.">Sword</AttackName>
13       <Damage>
14         <Hack>10</Hack>
15       </Damage>
16       <MaxRange>3</MaxRange>
17       <PrepareTime>500</PrepareTime>
18       <RepeatTime>1000</RepeatTime>
19       <PreferredClasses datatype="tokens">Unit+!Ship</PreferredClasses>
20     </Melee>
21   </Attack>
22   <Auras datatype="tokens">
23     units/han_minister_garrison
24     units/han_minister_gathering
25     units/han_minister_building
26     units/han_minister_garrison_ministry
27   </Auras>
28   <Cost>
29     <Population>2</Population>
30     <BuildTime>15</BuildTime>
31     <Resources>
32       <food>100</food>
33       <metal>100</metal>
34     </Resources>
35   </Cost>
36   <Health>
37     <Max>200</Max>
38   </Health>
39   <Identity>
40     <Civ>han</Civ>
41     <GenericName>Imperial Minister</GenericName>
42     <SpecificName>Guānlì</SpecificName>
43     <Tooltip>Use to boost the efficiency of nearby units and buildings. Garrison within a building to boost the efficiency of its production queue. Only han buildings can garrison ministers.</Tooltip>
44     <Classes datatype="tokens">Organic Human</Classes>
45     <VisibleClasses datatype="tokens">Minister</VisibleClasses>
46     <Icon>units/han/minister.png</Icon>
47     <RequiredTechnology>phase_town</RequiredTechnology>
48   </Identity>
49   <Minimap>
50     <Type>hero</Type>
51   </Minimap>
52   <Position>
53     <TurnRate>8</TurnRate>
54   </Position>
55   <Resistance>
56     <Entity>
57       <Damage>
58         <Hack>2</Hack>
59         <Pierce>4</Pierce>
60         <Crush>6</Crush>
61       </Damage>
62     </Entity>
63   </Resistance>
64   <Selectable>
65     <Overlay>
66       <AlwaysVisible/>
67       <Shape>
68         <Circle radius="2.5"/>
69       </Shape>
70       <Texture>
71         <MainTexture>128x128/octagram.png</MainTexture>
72         <MainTextureMask>128x128/octagram_mask.png</MainTextureMask>
73       </Texture>
74     </Overlay>
75   </Selectable>
76   <Sound>
77     <SoundGroups>
78       <attack_melee>attack/weapon/sword_attack.xml</attack_melee>
79       <build>resource/construction/con_wood.xml</build>
80       <death>actor/human/death/{phenotype}_death.xml</death>
81       <order_attack>voice/{lang}/civ/civ_{phenotype}_attack.xml</order_attack>
82       <order_attack_move>voice/{lang}/civ/civ_{phenotype}_attack.xml</order_attack_move>
83       <order_garrison>voice/{lang}/civ/civ_{phenotype}_garrison.xml</order_garrison>
84       <order_gather>voice/{lang}/civ/civ_{phenotype}_gather.xml</order_gather>
85       <order_repair>voice/{lang}/civ/civ_{phenotype}_repair.xml</order_repair>
86       <order_walk>voice/{lang}/civ/civ_{phenotype}_walk.xml</order_walk>
87       <run>actor/human/movement/run.xml</run>
88       <select>voice/{lang}/civ/civ_{phenotype}_select.xml</select>
89       <trained>interface/alarm/alarm_create_infantry.xml</trained>
90       <walk>actor/human/movement/walk.xml</walk>
91     </SoundGroups>
92   </Sound>
93   <TrainingRestrictions>
94     <Category>Minister</Category>
95   </TrainingRestrictions>
96   <Vision>
97     <Range>40</Range>
98   </Vision>
99   <VisualActor>
100     <Actor>units/han/minister.xml</Actor>
101   </VisualActor>
102 </Entity>