source: ps/trunk/binaries/data/mods/public/simulation/templates/template_unit_hero_infantry_crossbowman.xml@ 25233

Last change on this file since 25233 was 25233, checked in by Freagarach, 3 years ago

Combine attack times in a single node.

Reduces duplication, allows all attack types to cause splash damage.
While at it, makes delay and minimal range optional (for obvious defaults are available).

Split from D368, so basically a patch by @bb.

Note that it may seem like one can arbitrarily name an attack now, but that is not true.

Differential revision: D2002
Comments by: @bb, @Nescio, @Stan, @wraitii

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/xml
File size: 1.2 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<Entity parent="template_unit_hero_infantry">
3 <Attack>
4 <Ranged>
5 <AttackName>Crossbow</AttackName>
6 <Damage>
7 <Pierce>80</Pierce>
8 </Damage>
9 <MaxRange>60</MaxRange>
10 <PrepareTime>2400</PrepareTime>
11 <RepeatTime>3000</RepeatTime>
12 <Projectile>
13 <Speed>120</Speed>
14 <Spread>0.4</Spread>
15 <Gravity>30</Gravity>
16 <FriendlyFire>false</FriendlyFire>
17 <LaunchPoint y="3"/>
18 </Projectile>
19 <PreferredClasses datatype="tokens">Human</PreferredClasses>
20 </Ranged>
21 </Attack>
22 <Identity>
23 <GenericName>Hero Infantry Crossbowman</GenericName>
24 <VisibleClasses datatype="tokens">Ranged Crossbowman</VisibleClasses>
25 <Formations datatype="tokens">
26 special/formations/skirmish
27 </Formations>
28 </Identity>
29 <Resistance>
30 <Entity>
31 <Damage>
32 <Hack op="add">-2</Hack>
33 <Pierce op="add">-2</Pierce>
34 </Damage>
35 </Entity>
36 </Resistance>
37 <Sound>
38 <SoundGroups>
39 <attack_impact_ranged>attack/impact/arrow_impact.xml</attack_impact_ranged>
40 <attack_ranged>attack/weapon/bow_attack.xml</attack_ranged>
41 </SoundGroups>
42 </Sound>
43 <Turretable/>
44</Entity>
Note: See TracBrowser for help on using the repository browser.