wesnoth/data/core/units/dwarves/Lord.cfg
2023-07-16 00:20:46 +02:00

147 lines
4.7 KiB
INI

#textdomain wesnoth-units
[unit_type]
id=Dwarvish Lord
name= _ "Dwarvish Lord"
race=dwarf
image="units/dwarves/lord.png"
profile="portraits/dwarves/lord.webp"
hitpoints=74
movement_type=dwarvishfoot
movement=4
experience=150
level=3
alignment=neutral
advances_to=null
{AMLA_DEFAULT}
cost=69
usage=fighter
description= _ "Clad in shining armor, these dwarves look like kings from under the mountains. They wield axe and hammer with masterful skill, and can hit a target with a thrown hand axe at several paces. Though slow on their feet, these dwarves are a testament to the prowess of their kin."
die_sound={SOUND_LIST:DWARF_DIE}
{STANDING_ANIM_DIRECTIONAL_6_FRAME_FILTERED "units/dwarves/lord" {WOUNDED_UNIT ()} }
{STANDING_ANIM_DIRECTIONAL "units/dwarves/lord.png" "units/dwarves/lord-ne.png" }
{DEFENSE_ANIM_DIRECTIONAL_FILTERED "units/dwarves/lord-se-defend2.png" "units/dwarves/lord-se-defend1.png" "units/dwarves/lord-ne-defend2.png" "units/dwarves/lord-ne-defend1.png" {SOUND_LIST:DWARF_HIT} (
[filter_second_attack]
name=battle axe
[/filter_second_attack]
)}
{DEFENSE_ANIM_DIRECTIONAL_FILTERED "units/dwarves/lord-se-ranged-defend2.png" "units/dwarves/lord-se-ranged-defend1.png" "units/dwarves/lord-ne-ranged-defend2.png" "units/dwarves/lord-ne-ranged-defend1.png" {SOUND_LIST:DWARF_HIT} (
[filter_attack]
range=ranged
[/filter_attack]
)}
{DEFENSE_ANIM_DIRECTIONAL_FILTERED "units/dwarves/lord-se-hammer-defend2.png" "units/dwarves/lord-se-hammer-defend1.png" "units/dwarves/lord-ne-hammer-defend2.png" "units/dwarves/lord-ne-hammer-defend1.png" {SOUND_LIST:DWARF_HIT} (
[filter_second_attack]
name=hammer
[/filter_second_attack]
)}
[resistance]
blade=60
pierce=70
impact=70
[/resistance]
[attack]
name=battle axe
description=_"battle axe"
type=blade
range=melee
icon=attacks/battleaxe.png
damage=15
number=3
[/attack]
[attack]
name=hammer
description=_"hammer"
icon=attacks/hammer-dwarven.png
type=impact
range=melee
damage=19
number=2
[/attack]
[attack]
name=hatchet
description=_"hatchet"
type=blade
range=ranged
damage=10
number=1
[/attack]
[attack_anim]
[filter_attack]
name=hatchet
[/filter_attack]
start_time=-550
{MISSILE_FRAME_HATCHET}
[if]
direction=s,se,sw
[frame]
image="units/dwarves/lord-se-ranged[1~7].png:100"
[/frame]
[/if]
[else]
direction=n,ne,nw
[frame]
image="units/dwarves/lord-ne-ranged[1~7].png:100"
[/frame]
[/else]
{SOUND:HIT_AND_MISS hatchet.wav hatchet-miss.wav -150}
[/attack_anim]
[attack_anim]
[filter_attack]
name=hammer
[/filter_attack]
start_time=-550
offset=0.0~-0.05,-0.05~0.1,0.1~0.55,0.55~0.55,0.5~0.0
[if]
direction=s,se,sw
[frame]
image="units/dwarves/lord-se-hammer.png:40"
[/frame]
[frame]
image="units/dwarves/lord-se-hammer[1~7].png:100,units/dwarves/lord-se-hammer.png:100"
[/frame]
[/if]
[else]
[frame]
image="units/dwarves/lord-ne-hammer.png:40"
[/frame]
[frame]
image="units/dwarves/lord-ne-hammer[1~7].png:100,units/dwarves/lord-ne-hammer.png:100"
[/frame]
[/else]
{SOUND:HIT_AND_MISS mace.ogg mace-miss.ogg -100}
[/attack_anim]
[attack_anim]
[filter_attack]
name=battle axe
[/filter_attack]
start_time=-350
# offset=0.0~-0.15:30,-0.15~0.1:60,0.1~0.5:190,0.5~0.6:30,0.6~0.6:40,0.6~0.15:150,0.15~0.0:40
offset=0.0~-0.15:40,-0.15~0.4:240,0.4~0.4:120,0.4~0.0:200
[if]
direction=s,se,sw
[frame]
image="units/dwarves/lord-se-axe[1~9].png:[40,60*6,80*2]"
[/frame]
[frame]
image="units/dwarves/lord.png:40"
[/frame]
[/if]
[else]
[frame]
image="units/dwarves/lord-ne-axe[1~9].png:[40,60*6,80*2]"
[/frame]
[frame]
image="units/dwarves/lord-ne.png:40"
[/frame]
[/else]
{SOUND:HIT_AND_MISS axe.ogg {SOUND_LIST:MISS} -50}
[/attack_anim]
{MOVING_ANIM_DIRECTIONAL_10_FRAME "units/dwarves/lord"}
[/unit_type]