1
0
forked from 0ad/0ad

[Gameplay] Create a generic 'Longsword' mixin that adds a small splash attack and apply it to the Thracian Black Cloak

This mixin is genericized in order to be useful for other units if
desired. It adds a splash attack, but removes some regular attack to
balance. With this, a champion or other unit can be easily
differentiated. In this instance, it is applied to the Macedonians'
champion swordsman, the Thracian Black Cloak. These guys use the very
long Rhomphaia and Sika swords of Thraco-Dacian origin.

Patch by: @wowgetoffyourcellphone
Accepted by: @real_tabasco_sauce, @borg-
Differential revision: https://code.wildfiregames.com/D5145
This was SVN commit r27871.
This commit is contained in:
wowgetoffyourcellphone 2023-10-05 01:03:27 +00:00
parent e99fab63d1
commit 681e3cfaab
2 changed files with 25 additions and 1 deletions

View File

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Entity>
<Attack>
<Melee>
<Damage>
<Hack op="add">-4.0</Hack>
</Damage>
<Splash>
<Damage>
<Hack>4.0</Hack>
</Damage>
<Shape>Circular</Shape>
<Range>2</Range>
<FriendlyFire>false</FriendlyFire>
</Splash>
<MaxRange op="add">2.0</MaxRange>
<PrepareTime>500</PrepareTime>
<RepeatTime>1000</RepeatTime>
</Melee>
</Attack>
<Identity>
<VisibleClasses datatype="tokens">Longsword</VisibleClasses>
</Identity>
</Entity>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_champion_infantry_swordsman">
<Entity parent="longsword|template_unit_champion_infantry_swordsman">
<Attack>
<Melee>
<AttackName context="Name of an attack using a rhomphaia (ῥομφαία), a Thracian two-handed weapon capable of both thrusting and slashing.">Rhomphaia</AttackName>