From e26a24cb5b9ba954a590e4bb4063521357f58119 Mon Sep 17 00:00:00 2001 From: Dugy Date: Mon, 13 May 2024 01:42:03 +0200 Subject: [PATCH] Give Shadow Prince an AMLA that unlocks a new attack that hits all adjacent enemies with lightning --- units/Shadow_Prince.cfg | 117 ++++++++++++++++++++++++++++++++++++++-- 1 file changed, 112 insertions(+), 5 deletions(-) diff --git a/units/Shadow_Prince.cfg b/units/Shadow_Prince.cfg index 682f62be..989557d0 100644 --- a/units/Shadow_Prince.cfg +++ b/units/Shadow_Prince.cfg @@ -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] @@ -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 @@ -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 @@ -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="" @@ -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" @@ -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" @@ -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 @@ -378,4 +485,4 @@ {AMLA_DEFAULT_BONUSES} [/advancement] ) "Shadow Prince"} -[/unit_type] \ No newline at end of file +[/unit_type]