Skip to content

Commit

Permalink
Give Shadow Prince an AMLA that unlocks a new attack that hits all ad…
Browse files Browse the repository at this point in the history
…jacent enemies with lightning
  • Loading branch information
Dugy committed May 12, 2024
1 parent a21d1d0 commit e26a24c
Showing 1 changed file with 112 additions and 5 deletions.
117 changes: 112 additions & 5 deletions units/Shadow_Prince.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
advances_to=null
cost=70
usage=mixed fighter
description= _ "After years of life as a criminal, the outlaw gains pride and no longer feels the need to behave like a brute. To teach the others that they are superior too, they learn some magic, and practise fighting with a staff that they used when learning magic. Their authority above other criminals is so great, that they can hide in any settlement."
description= _ "After years of life as a criminal, the outlaw gains pride and no longer feels the need to behave like a brute. To teach the others that they are superior too, they learn some magic, and practise fighting with a staff that they used when learning magic. Their authority above other criminals is so great that they can hide in any settlement."
die_sound={SOUND_LIST:HUMAN_DIE}
{DEFENSE_ANIM "units/humans/shadowprince-defend.png" "units/humans/shadowprince.png" {SOUND_LIST:HUMAN_HIT} }
[portrait]
Expand Down Expand Up @@ -89,6 +89,39 @@
image="units/humans/shadowprince-magic-2.png"
[/frame]
[/attack_anim]
[attack_anim]
[filter_attack]
name=wave of lightning
[/filter_attack]
[missile_frame]
halo="halo/lightning-explosion-[1~9].png:100"
auto_vflip=no
offset=0
[/missile_frame]
[if]
hits=yes
[frame]
begin=-400
end=-150
image="units/humans/shadowprince-magic-1.png"
sound=lightning.ogg
[/frame]
[/if]
[else]
hits=no
[frame]
begin=-400
end=-150
image="units/humans/shadowprince-magic-1.png"
sound=lightning-miss.ogg
[/frame]
[/else]
[frame]
begin=-150
end=50
image="units/humans/shadowprince-magic-2.png"
[/frame]
[/attack_anim]
[attack_anim]
[filter_attack]
name=staff
Expand Down Expand Up @@ -159,6 +192,24 @@
image="units/humans/shadowprince+female-magic-2.png"
[/frame]
[/attack_anim]
[attack_anim]
[filter_attack]
name=wave of lightning
[/filter_attack]
[if]
[frame]
image="units/humans/shadowprince+female-magic-1.png"
[/frame]
[/if]
[else]
[frame]
image="units/humans/shadowprince+female-magic-1.png"
[/frame]
[/else]
[frame]
image="units/humans/shadowprince+female-magic-2.png"
[/frame]
[/attack_anim]
[attack_anim]
[filter_attack]
name=staff
Expand Down Expand Up @@ -246,7 +297,7 @@
max_times=1
always_display=yes
id=magic
description= _ "better with magic"
description= _ "better with magic blast"
image=attacks/noctum.png
strict_amla=yes
require_amla=""
Expand All @@ -261,7 +312,7 @@
max_times=2
always_display=yes
id=magic2
description= _ "faster with magic"
description= _ "faster with magic blast"
image=attacks/noctum.png
strict_amla=yes
require_amla="magic"
Expand All @@ -277,7 +328,7 @@
max_times=10
always_display=yes
id=magic3
description= _ "better with magic"
description= _ "better with magic blast"
image=attacks/noctum.png
strict_amla=yes
require_amla="magic"
Expand All @@ -288,6 +339,62 @@
[/effect]
{AMLA_DEFAULT_BONUSES}
[/advancement]
[advancement]
max_times=1
always_display=yes
id=lightning
description= _ "able to strike all nearby enemies with lightning"
image=attacks/lightning.png
strict_amla=yes
require_amla="magic"
[effect]
apply_to=new_attack
name="wave of lightning"
description= _ "wave of lightning"
type=lightning
[specials]
{WEAPON_SPECIAL_MAGICAL}
{WEAPON_SPECIAL_WHIRLWIND}
[/specials]
range=ranged
damage=8
number=3
defense_weight=0
icon=attacks/lightning.png
[/effect]
{AMLA_DEFAULT_BONUSES}
[/advancement]
[advancement]
max_times=1
always_display=yes
id=lightning2
description= _ "faster with wave of lightning"
image=attacks/lightning.png
strict_amla=yes
require_amla="lightning"
[effect]
apply_to=attack
name=wave of lightning
increase_damage=-1
increase_attacks=1
[/effect]
{AMLA_DEFAULT_BONUSES}
[/advancement]
[advancement]
max_times=5
always_display=yes
id=lightning3
description= _ "better with wave of lightning"
image=attacks/lightning.png
strict_amla=yes
require_amla="lightning"
[effect]
apply_to=attack
name=wave of lightning
increase_damage=1
[/effect]
{AMLA_DEFAULT_BONUSES}
[/advancement]
[advancement]
max_times=1
always_display=yes
Expand Down Expand Up @@ -378,4 +485,4 @@
{AMLA_DEFAULT_BONUSES}
[/advancement]
) "Shadow Prince"}
[/unit_type]
[/unit_type]

0 comments on commit e26a24c

Please sign in to comment.