Skip to content

Commit

Permalink
TRoW: Fixed Haldric's defense animations
Browse files Browse the repository at this point in the history
  • Loading branch information
slavrenyuk committed Nov 4, 2019
1 parent 5302711 commit 0413438
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
11 changes: 9 additions & 2 deletions data/campaigns/The_Rise_Of_Wesnoth/units/Noble_Commander.cfg
Expand Up @@ -20,8 +20,15 @@
description= _ "The rank of a noble Commander is held by those who lead battle groups into combat. Possessing leadership skills, they give lower-level units in adjacent hexes improved performance in combat. Commanders are best skilled with the sword, although they also carry a bow to use when necessary. If the Commander is lost, so is the battle."
{NOTE_LEADERSHIP}
die_sound={SOUND_LIST:HUMAN_DIE}
{DEFENSE_ANIM_RANGE "units/noble-commander-defend.png" "units/noble-commander.png" {SOUND_LIST:HUMAN_HIT} melee}
{DEFENSE_ANIM_RANGE "units/noble-commander-bow-defend.png" "units/noble-commander-bow.png" {SOUND_LIST:HUMAN_HIT} ranged}

# first defense animation is selected for sword and ruby of fire, second is used for bow only
{DEFENSE_ANIM "units/noble-commander-defend.png" "units/noble-commander.png" {SOUND_LIST:HUMAN_HIT}}
{DEFENSE_ANIM_FILTERED "units/noble-commander-bow-defend.png" "units/noble-commander-bow.png" {SOUND_LIST:HUMAN_HIT} (
[filter_second_attack]
name=bow
[/filter_second_attack]
)}

[attack]
name=sword
#textdomain wesnoth-units
Expand Down
11 changes: 9 additions & 2 deletions data/campaigns/The_Rise_Of_Wesnoth/units/Noble_Lord.cfg
Expand Up @@ -21,8 +21,15 @@
description= _ "The noble leaders of many troops, Lords are especially strong in melee combat, and also possess skill with the bow. Like Commanders, Lords possess leadership skills, and improve the fighting ability of all adjacent lower-level units."
{NOTE_LEADERSHIP}
die_sound={SOUND_LIST:HUMAN_DIE}
{DEFENSE_ANIM_RANGE "units/noble-lord-defend.png" "units/noble-lord.png" {SOUND_LIST:HUMAN_HIT} melee}
{DEFENSE_ANIM_RANGE "units/noble-lord-bow-defend.png" "units/noble-lord-bow.png" {SOUND_LIST:HUMAN_HIT} ranged}

# first defense animation is selected for sword and ruby of fire, second is used for bow only
{DEFENSE_ANIM "units/noble-lord-defend.png" "units/noble-lord.png" {SOUND_LIST:HUMAN_HIT}}
{DEFENSE_ANIM_FILTERED "units/noble-lord-bow-defend.png" "units/noble-lord-bow.png" {SOUND_LIST:HUMAN_HIT} (
[filter_second_attack]
name=bow
[/filter_second_attack]
)}

[attack]
name=sword
#textdomain wesnoth-units
Expand Down

0 comments on commit 0413438

Please sign in to comment.