Skip to content

Commit

Permalink
Add AMLA options to decrease enemy resistances when hit and teleport …
Browse files Browse the repository at this point in the history
…to a necromancer to Zombie Rider
  • Loading branch information
Dugy committed May 28, 2024
1 parent 2a0c132 commit fb72071
Show file tree
Hide file tree
Showing 5 changed files with 113 additions and 5 deletions.
Binary file added images/units/undead/zombie-rider-die-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/units/undead/zombie-rider-die-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
87 changes: 82 additions & 5 deletions units/Zombie_Rider.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
impact=80
cold=50
pierce=80
fire=130
arcane=150
fire=110
arcane=130
[/resistance]
[attack]
name=axe
Expand Down Expand Up @@ -96,6 +96,51 @@
image="units/undead/zombie-rider.png:25"
[/frame]
[/attack_anim]
[death]
start_time=0
[frame]
image="units/undead/zombie-rider-die-[1~2].png:100"
[/frame]
[frame]
image="units/undead/soulless-mounted-die-[3~4].png:100"
[/frame]
[frame]
image="units/undead/soulless-die-[5~10].png:100"
[/frame]
[/death]
[animation]
apply_to=pre_teleport
start_time=-900
[frame]
image="units/undead/zombie-rider-die-[1~2].png:100"
[/frame]
[frame]
image="units/undead/soulless-mounted-die-[3~4].png:100"
[/frame]
[frame]
image="units/undead/soulless-die-[5~10].png:100"
[/frame]
[frame]
image="misc/blank-hex.png:100"
[/frame]
[/animation]

[animation]
apply_to=post_teleport
start_time=-900
[frame]
image="misc/blank-hex.png:300"
[/frame]
[frame]
image="units/undead/soulless-die-[10~5].png:100"
[/frame]
[frame]
image="units/undead/soulless-mounted-die-[4~3].png:100"
[/frame]
[frame]
image="units/undead/zombie-rider-die-[2~1].png:100"
[/frame]
[/animation]
{GENERIC_AMLA units/undead/zombie-rider.png units/undead/zombie-rider-defend.png units/undead/zombie-rider-defend.png units/undead/zombie-rider.png units/undead/zombie-rider-defend.png units/undead/zombie-rider-defend.png (
[advancement]
max_times=1
Expand Down Expand Up @@ -224,6 +269,22 @@
[/effect]
{AMLA_DEFAULT_BONUSES}
[/advancement]
[advancement]
max_times=1
always_display=yes
id=revulsion
description= _ "causing opponents to lose 5% resistances every time they hit (halves every turn)"
image=attacks/wail.png
strict_amla=yes
require_amla=""
[effect]
apply_to=new_ability
[abilities]
{ABILITY_REVULSION}
[/abilities]
[/effect]
{AMLA_DEFAULT_BONUSES}
[/advancement]
[advancement]
max_times=1
always_display=yes
Expand Down Expand Up @@ -262,6 +323,22 @@
[/effect]
{AMLA_DEFAULT_BONUSES}
[/advancement]
[advancement]
max_times=1
always_display=yes
id=recall
description= _ "able to teleport to an Ancient Lich, Arch Necromancer, Demilich or Lich King"
image=attacks/mud-glob.png
strict_amla=yes
require_amla=""
[effect]
apply_to=new_ability
[abilities]
{ABILITY_HOMECOMING}
[/abilities]
[/effect]
{AMLA_DEFAULT_BONUSES}
[/advancement]
[advancement]
id=armour
max_times=5
Expand All @@ -278,13 +355,13 @@
impact=1
fire=1
cold=-3
arcane=2
arcane=1
[/resistance]
[/effect]
{AMLA_DEFAULT_BONUSES}
[/advancement]
[advancement]
max_times=3
max_times=5
always_display=yes
id=movement
description= _ "faster"
Expand All @@ -298,4 +375,4 @@
{AMLA_DEFAULT_BONUSES}
[/advancement]
) "Zombie Rider"}
[/unit_type]
[/unit_type]
7 changes: 7 additions & 0 deletions utils/abilities.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -1631,6 +1631,13 @@ Enemy units cannot see this unit during dawn or dusk, except if they have units
description= _ "After the damage with this weapon is dealt, the target takes 5 points of impact damage, that is unaffected by charge or slow."
[/dummy]
#enddef
#define ABILITY_REVULSION
[dummy]
id=revulsion
name= _ "revulsion"
description= _ "Any enemies hitting this unit will lose 5% resistances. This weakness halves every turn."
[/dummy]
#enddef
#define ABILITY_WARDRUMS
[dummy]
id=wardrums
Expand Down
24 changes: 24 additions & 0 deletions utils/abilities_events.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5773,6 +5773,30 @@
[/set_resolve_intensity]
[/event]

[event]
name=attacker hits
first_time_only=no
[filter_second]
ability=revulsion
[/filter_second]
[set_resolve_intensity]
id=$unit.id
sub=5
[/set_resolve_intensity]
[/event]

[event]
name=defender hits
first_time_only=no
[filter]
ability=revulsion
[/filter]
[set_resolve_intensity]
id=$second_unit.id
sub=5
[/set_resolve_intensity]
[/event]

[event]
name=attacker hits
first_time_only=no
Expand Down

0 comments on commit fb72071

Please sign in to comment.