Last change
on this file since 25036 was 25036, checked in by Freagarach, 3 years ago |
Clean attack lines in templates.
- Listing all damage types everywhere is not needed anymore, therefore 0-damage lines are purged.
- Trailing zeros are removed from <Attack> node lines (e.g. <MaxRange>, <Spread>), per @bb.
- Attack nodes in templates that were effectively replaced by all their children are deleted too.
- Clean up the confusing and haphazard attack situation in the fauna templates.
- The now obsolete template_unit_fauna_wild_defensive_fox.xml is deleted.
- All animals got an attack range that's at half their footprint length + 1 and an attack <PrepareTime> that's half their <RepeatTime>, for consistency.
Patch by: @Nescio
Differential revision: D3342
|
-
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_infantry_ranged">
|
---|
3 | <Attack>
|
---|
4 | <Ranged>
|
---|
5 | <AttackName>Bow</AttackName>
|
---|
6 | <Damage>
|
---|
7 | <Pierce>6.7</Pierce>
|
---|
8 | </Damage>
|
---|
9 | <MaxRange>60</MaxRange>
|
---|
10 | <MinRange>0</MinRange>
|
---|
11 | <PrepareTime>500</PrepareTime>
|
---|
12 | <RepeatTime>1000</RepeatTime>
|
---|
13 | <Delay>0</Delay>
|
---|
14 | <Projectile>
|
---|
15 | <Speed>100</Speed>
|
---|
16 | <Spread>2</Spread>
|
---|
17 | <Gravity>50</Gravity>
|
---|
18 | <FriendlyFire>false</FriendlyFire>
|
---|
19 | <LaunchPoint y="3"/>
|
---|
20 | </Projectile>
|
---|
21 | <PreferredClasses datatype="tokens">Human</PreferredClasses>
|
---|
22 | </Ranged>
|
---|
23 | </Attack>
|
---|
24 | <Cost>
|
---|
25 | <Resources>
|
---|
26 | <food>50</food>
|
---|
27 | <wood>50</wood>
|
---|
28 | </Resources>
|
---|
29 | </Cost>
|
---|
30 | <Identity>
|
---|
31 | <VisibleClasses datatype="tokens">Archer</VisibleClasses>
|
---|
32 | <GenericName>Archer</GenericName>
|
---|
33 | </Identity>
|
---|
34 | <Loot>
|
---|
35 | <wood>5</wood>
|
---|
36 | </Loot>
|
---|
37 | <Resistance>
|
---|
38 | <Entity>
|
---|
39 | <Damage>
|
---|
40 | <Hack>1</Hack>
|
---|
41 | <Pierce>1</Pierce>
|
---|
42 | </Damage>
|
---|
43 | </Entity>
|
---|
44 | </Resistance>
|
---|
45 | <Sound>
|
---|
46 | <SoundGroups>
|
---|
47 | <attack_impact_ranged>attack/impact/arrow_impact.xml</attack_impact_ranged>
|
---|
48 | <attack_ranged>attack/weapon/bow_attack.xml</attack_ranged>
|
---|
49 | </SoundGroups>
|
---|
50 | </Sound>
|
---|
51 | <UnitMotion>
|
---|
52 | <WalkSpeed op="mul">1.2</WalkSpeed>
|
---|
53 | </UnitMotion>
|
---|
54 | </Entity>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.