Removed the hyphen-minus in the floating text...
...caused by Yechnagoth's special slime attack; made it so that damage is applied before slowing, like it is in actual slowing attack; added a delay between the application of damaging and slowing to mimic the spacing between the labels from an actual slowing attack.
This commit is contained in:
parent
a37d7b59c1
commit
f7e654313c
1 changed files with 34 additions and 30 deletions
|
@ -1253,35 +1253,9 @@
|
|||
time=100
|
||||
[/delay]
|
||||
|
||||
# Add 2 effects slow unit and damage it
|
||||
# 1: slow unit
|
||||
# 2: do damage to unit (8/9/10 based on difficulty?-stops healing)
|
||||
|
||||
{VARIABLE elf_list[$victim_i].status.slowed yes}
|
||||
|
||||
[if]
|
||||
[variable]
|
||||
name="elf_list[$victim_i].gender"
|
||||
equals="female"
|
||||
[/variable]
|
||||
[then]
|
||||
#textdomain wesnoth
|
||||
{VARIABLE slowed_text ( _ "female^slowed")}
|
||||
[/then]
|
||||
[else]
|
||||
{VARIABLE slowed_text ( _ "slowed")}
|
||||
[/else]
|
||||
[/if]
|
||||
#textdomain wesnoth-utbs
|
||||
|
||||
[unstore_unit]
|
||||
variable=elf_list[$victim_i]
|
||||
find_vacant=no
|
||||
text=$slowed_text
|
||||
{COLOR_HARM}
|
||||
[/unstore_unit]
|
||||
|
||||
{CLEAR_VARIABLE slowed_text}
|
||||
# Add two effects slow unit and damage it
|
||||
# 1: do damage to unit (8/9/10 based on difficulty?-stops healing)
|
||||
# 2: slow unit
|
||||
|
||||
#ifdef EASY
|
||||
{VARIABLE special_attack_damage 10}
|
||||
|
@ -1310,10 +1284,40 @@
|
|||
[unstore_unit]
|
||||
variable=elf_list[$victim_i]
|
||||
find_vacant=no
|
||||
text="-$special_attack_damage" # wmllint: ignore no spellcheck
|
||||
text="$special_attack_damage" # wmllint: ignore no spellcheck
|
||||
{COLOR_HARM}
|
||||
[/unstore_unit]
|
||||
|
||||
[delay]
|
||||
time=300
|
||||
[/delay]
|
||||
|
||||
{VARIABLE elf_list[$victim_i].status.slowed yes}
|
||||
|
||||
[if]
|
||||
[variable]
|
||||
name="elf_list[$victim_i].gender"
|
||||
equals="female"
|
||||
[/variable]
|
||||
[then]
|
||||
#textdomain wesnoth
|
||||
{VARIABLE slowed_text ( _ "female^slowed")}
|
||||
[/then]
|
||||
[else]
|
||||
{VARIABLE slowed_text ( _ "slowed")}
|
||||
[/else]
|
||||
[/if]
|
||||
#textdomain wesnoth-utbs
|
||||
|
||||
[unstore_unit]
|
||||
variable=elf_list[$victim_i]
|
||||
find_vacant=no
|
||||
text=$slowed_text
|
||||
{COLOR_HARM}
|
||||
[/unstore_unit]
|
||||
|
||||
{CLEAR_VARIABLE slowed_text}
|
||||
|
||||
[if]
|
||||
[variable]
|
||||
name=hit_by_special_attack
|
||||
|
|
Loading…
Add table
Reference in a new issue