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.3 KB
|
Line | |
---|
1 | <?xml version="1.0" encoding="utf-8"?>
|
---|
2 | <Entity parent="template_unit_champion_infantry">
|
---|
3 | <Attack>
|
---|
4 | <Ranged>
|
---|
5 | <AttackName>Bow</AttackName>
|
---|
6 | <Damage>
|
---|
7 | <Pierce>13.5</Pierce>
|
---|
8 | </Damage>
|
---|
9 | <MaxRange>60</MaxRange>
|
---|
10 | <PrepareTime>500</PrepareTime>
|
---|
11 | <RepeatTime>1000</RepeatTime>
|
---|
12 | <Projectile>
|
---|
13 | <Speed>100</Speed>
|
---|
14 | <Spread>0.8</Spread>
|
---|
15 | <Gravity>50</Gravity>
|
---|
16 | <FriendlyFire>false</FriendlyFire>
|
---|
17 | <LaunchPoint y="3"/>
|
---|
18 | </Projectile>
|
---|
19 | <PreferredClasses datatype="tokens">Human</PreferredClasses>
|
---|
20 | </Ranged>
|
---|
21 | </Attack>
|
---|
22 | <Health>
|
---|
23 | <Max>120</Max>
|
---|
24 | </Health>
|
---|
25 | <Identity>
|
---|
26 | <VisibleClasses datatype="tokens">Ranged Archer</VisibleClasses>
|
---|
27 | <GenericName>Champion Archer</GenericName>
|
---|
28 | <Formations datatype="tokens">
|
---|
29 | special/formations/skirmish
|
---|
30 | </Formations>
|
---|
31 | </Identity>
|
---|
32 | <Resistance>
|
---|
33 | <Entity>
|
---|
34 | <Damage>
|
---|
35 | <Hack op="add">-2</Hack>
|
---|
36 | <Pierce op="add">-2</Pierce>
|
---|
37 | </Damage>
|
---|
38 | </Entity>
|
---|
39 | </Resistance>
|
---|
40 | <Sound>
|
---|
41 | <SoundGroups>
|
---|
42 | <attack_impact_ranged>attack/impact/arrow_impact.xml</attack_impact_ranged>
|
---|
43 | <attack_ranged>attack/weapon/bow_attack.xml</attack_ranged>
|
---|
44 | </SoundGroups>
|
---|
45 | </Sound>
|
---|
46 | <Turretable/>
|
---|
47 | <UnitMotion>
|
---|
48 | <WalkSpeed op="mul">1.2</WalkSpeed>
|
---|
49 | </UnitMotion>
|
---|
50 | </Entity>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.