source: ps/trunk/binaries/data/mods/public/simulation/templates/template_unit_infantry_ranged_javelineer.xml@ 25036

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>Javelin</AttackName>
6 <Damage>
7 <Pierce>16</Pierce>
8 </Damage>
9 <MaxRange>30</MaxRange>
10 <MinRange>0</MinRange>
11 <PrepareTime>750</PrepareTime>
12 <RepeatTime>1250</RepeatTime>
13 <Delay>0</Delay>
14 <Projectile>
15 <Speed>70</Speed>
16 <Spread>4</Spread>
17 <Gravity>35</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 <wood>50</wood>
27 </Resources>
28 </Cost>
29 <Identity>
30 <GenericName>Infantry Javelineer</GenericName>
31 <VisibleClasses datatype="tokens">Javelineer</VisibleClasses>
32 </Identity>
33 <Loot>
34 <wood>5</wood>
35 </Loot>
36 <Resistance>
37 <Entity>
38 <Damage>
39 <Hack>1</Hack>
40 <Pierce>1</Pierce>
41 </Damage>
42 </Entity>
43 </Resistance>
44 <Sound>
45 <SoundGroups>
46 <attack_ranged>attack/weapon/javelin_attack.xml</attack_ranged>
47 <attack_impact_ranged>attack/impact/javelin_impact.xml</attack_impact_ranged>
48 </SoundGroups>
49 </Sound>
50 <UnitMotion>
51 <WalkSpeed op="mul">1.2</WalkSpeed>
52 </UnitMotion>
53</Entity>
Note: See TracBrowser for help on using the repository browser.