source: ps/trunk/binaries/data/mods/public/simulation/templates/template_unit_infantry.xml@ 25174

Last change on this file since 25174 was 25174, checked in by wraitii, 3 years ago

Introduce a 'Builder' class for entities that can build structures.

  • Increases moddability
  • Increases the clarity of visible classes (gatherer & builder vs Worker)
  • Introduce an 'Idle builder' hotkey.

Patch by: Nescio

Differential Revision: https://code.wildfiregames.com/D3290

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/xml
File size: 4.3 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<Entity parent="template_unit">
3 <Attack>
4 <Capture>
5 <AttackName>Capture</AttackName>
6 <Capture>2.5</Capture>
7 <MaxRange>4</MaxRange>
8 <RepeatTime>1000</RepeatTime>
9 <RestrictedClasses datatype="tokens">Field Palisade Wall</RestrictedClasses>
10 </Capture>
11 <Slaughter>
12 <AttackName>Slaughter</AttackName>
13 <Damage>
14 <Hack>1000</Hack>
15 </Damage>
16 <MaxRange>2</MaxRange>
17 </Slaughter>
18 </Attack>
19 <Builder>
20 <Rate>1.0</Rate>
21 <Entities datatype="tokens">
22 structures/{civ}/civil_centre
23 structures/{civ}/crannog
24 structures/{civ}/military_colony
25 structures/{civ}/house
26 structures/{civ}/apartment
27 structures/{civ}/storehouse
28 structures/{civ}/farmstead
29 structures/{civ}/field
30 structures/{civ}/corral
31 structures/{civ}/dock
32 structures/{civ}/barracks
33 structures/{civ}/stable
34 structures/{civ}/elephant_stable
35 structures/{civ}/arsenal
36 structures/{civ}/forge
37 structures/{civ}/temple
38 structures/{civ}/market
39 structures/{civ}/outpost
40 structures/{civ}/sentry_tower
41 structures/{civ}/defense_tower
42 structures/{civ}/fortress
43 structures/wallset_palisade
44 structures/{civ}/wallset_siege
45 structures/{civ}/wallset_stone
46 structures/{civ}/theater
47 structures/{civ}/wonder
48 </Entities>
49 </Builder>
50 <Cost>
51 <BuildTime>12</BuildTime>
52 <Resources>
53 <food>50</food>
54 <wood>0</wood>
55 <stone>0</stone>
56 <metal>0</metal>
57 </Resources>
58 </Cost>
59 <Health>
60 <Max>80</Max>
61 </Health>
62 <Identity>
63 <GenericName>Infantry</GenericName>
64 <Classes datatype="tokens">Human CitizenSoldier</Classes>
65 <VisibleClasses datatype="tokens">Citizen Builder Worker Soldier Infantry</VisibleClasses>
66 <Rank>Basic</Rank>
67 </Identity>
68 <Loot>
69 <xp>100</xp>
70 <food>5</food>
71 <wood>0</wood>
72 <stone>0</stone>
73 <metal>0</metal>
74 </Loot>
75 <Position>
76 <Anchor>upright</Anchor>
77 </Position>
78 <Promotion>
79 <RequiredXp>100</RequiredXp>
80 </Promotion>
81 <Resistance>
82 <Entity>
83 <Damage>
84 <Hack>2</Hack>
85 <Pierce>4</Pierce>
86 <Crush>15</Crush>
87 </Damage>
88 </Entity>
89 </Resistance>
90 <ResourceGatherer>
91 <MaxDistance>2.0</MaxDistance>
92 <BaseSpeed>1.0</BaseSpeed>
93 <Rates>
94 <food.fruit>0.5</food.fruit>
95 <food.grain>0.25</food.grain>
96 <food.meat>1</food.meat>
97 <wood.tree>0.75</wood.tree>
98 <wood.ruins>5</wood.ruins>
99 <stone.rock>0.5</stone.rock>
100 <stone.ruins>2</stone.ruins>
101 <metal.ore>0.5</metal.ore>
102 </Rates>
103 <Capacities>
104 <food>10</food>
105 <wood>10</wood>
106 <stone>10</stone>
107 <metal>10</metal>
108 </Capacities>
109 </ResourceGatherer>
110 <Sound>
111 <SoundGroups>
112 <attack_slaughter>attack/weapon/knife_attack.xml</attack_slaughter>
113 <order_attack>voice/{lang}/civ/civ_{phenotype}_attack.xml</order_attack>
114 <order_build>voice/{lang}/civ/civ_{phenotype}_build.xml</order_build>
115 <order_garrison>voice/{lang}/civ/civ_{phenotype}_garrison.xml</order_garrison>
116 <order_gather>voice/{lang}/civ/civ_{phenotype}_gather.xml</order_gather>
117 <order_repair>voice/{lang}/civ/civ_{phenotype}_repair.xml</order_repair>
118 <order_walk>voice/{lang}/civ/civ_{phenotype}_walk.xml</order_walk>
119 <select>voice/{lang}/civ/civ_{phenotype}_select.xml</select>
120 <walk>actor/human/movement/walk.xml</walk>
121 <run>actor/human/movement/run.xml</run>
122 <death>actor/human/death/{phenotype}_death.xml</death>
123 <build>resource/construction/con_wood.xml</build>
124 <gather_fruit>resource/foraging/forage_leaves.xml</gather_fruit>
125 <gather_grain>resource/farming/farm.xml</gather_grain>
126 <gather_meat>resource/gathering/gather_meat.xml</gather_meat>
127 <gather_tree>resource/lumbering/lumbering.xml</gather_tree>
128 <gather_rock>resource/mining/pickaxe.xml</gather_rock>
129 <gather_ore>resource/mining/mining.xml</gather_ore>
130 <gather_ruins>resource/mining/mining.xml</gather_ruins>
131 <trained>interface/alarm/alarm_create_infantry.xml</trained>
132 <invalid_building_placement>interface/alarm/alarm_invalid_building_placement.xml</invalid_building_placement>
133 </SoundGroups>
134 </Sound>
135 <Vision>
136 <Range>80</Range>
137 </Vision>
138</Entity>
Note: See TracBrowser for help on using the repository browser.