1
0
forked from 0ad/0ad

Fixed war elephants. They can attack walls now.

This was SVN commit r13459.
This commit is contained in:
Michael D. Hafer 2013-06-08 13:42:49 +00:00
parent 8eae65be2b
commit d151a6a304
8 changed files with 25 additions and 12 deletions

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_champion_cavalry">
<Entity parent="template_unit_champion">
<Armour>
<Hack>5</Hack>
<Pierce>8</Pierce>
@ -28,6 +28,9 @@
<Icon>gaia/fauna_elephant.png</Icon>
<History>War elephants were used by many Eastern and African cultures.</History>
</Identity>
<Obstruction>
<Unit radius="4.0"/>
</Obstruction>
<Selectable>
<Overlay>
<Texture>
@ -41,15 +44,26 @@
<select>actor/fauna/animal/elephant_select.xml</select>
<order_walk>actor/fauna/animal/elephant_order.xml</order_walk>
<order_attack>actor/fauna/animal/elephant_attack.xml</order_attack>
<order_gather>voice/hellenes/civ/civ_male_ack.xml</order_gather>
<attack>actor/fauna/animal/elephant_attack.xml</attack>
<walk>actor/mounted/movement/walk.xml</walk>
<run>actor/mounted/movement/walk.xml</run>
<death>actor/fauna/animal/elephant_death.xml</death>
<trained>actor/fauna/animal/elephant_trained.xml</trained>
</SoundGroups>
</Sound>
<Stamina>
<Max>2500</Max>
</Stamina>
<StatusBars>
<HeightOffset>6.5</HeightOffset>
</StatusBars>
<UnitMotion>
<WalkSpeed>7.0</WalkSpeed>
<Run>
<Speed>14.0</Speed>
<Range>1000.0</Range>
<RangeMin>10.0</RangeMin>
</Run>
</UnitMotion>
<Vision>

View File

@ -3,8 +3,10 @@
<Attack>
<Melee>
<Hack>20.0</Hack>
<Pierce>0.0</Pierce>
<Crush>20.0</Crush>
<MaxRange>8.0</MaxRange>
<RepeatTime>1000</RepeatTime>
<Bonuses>
<BonusStructures>
<Classes>Structure</Classes>
@ -20,12 +22,13 @@
</BonusGates>
</Bonuses>
<PreferredClasses datatype="tokens">Structure</PreferredClasses>
<RestrictedClasses datatype="tokens">-StoneWall</RestrictedClasses>
</Melee>
<Charge>
<Hack>60.0</Hack>
<Pierce>0.0</Pierce>
<Crush>60.0</Crush>
<MaxRange>8.0</MaxRange>
<MinRange>0.0</MinRange>
<Bonuses>
<BonusStructures>
<Classes>Structure</Classes>
@ -41,7 +44,6 @@
</BonusGates>
</Bonuses>
<PreferredClasses datatype="tokens">Structure</PreferredClasses>
<RestrictedClasses datatype="tokens">-StoneWall</RestrictedClasses>
</Charge>
</Attack>
<Identity>

View File

@ -2,7 +2,6 @@
<Entity parent="template_unit_hero_elephant_melee">
<Identity>
<Civ>cart</Civ>
<Classes datatype="tokens">Elephant -Cavalry</Classes>
<GenericName>Hannibal Barca</GenericName>
<SpecificName>Ḥannibaʿal Baraq</SpecificName>
<Tooltip>Hero Aura: TBD</Tooltip>

View File

@ -2,7 +2,6 @@
<Entity parent="template_unit_hero_elephant_melee">
<Identity>
<Civ>maur</Civ>
<Classes datatype="tokens">Elephant -Cavalry</Classes>
<GenericName>Chandragupta Maurya</GenericName>
<SpecificName>Chandragupta Maurya</SpecificName>
<Tooltip>Hero Aura: "TBD"</Tooltip>

View File

@ -2,7 +2,6 @@
<Entity parent="template_unit_champion_elephant_melee">
<Identity>
<Civ>ptol</Civ>
<Classes datatype="tokens">Elephant -Cavalry</Classes>
<GenericName>Towered War Elephant</GenericName>
<SpecificName>Elephantos Polemou</SpecificName>
<Icon>units/cart_champion_cavalry.png</Icon>