DiD: fix bad variable names

This commit is contained in:
nemaara 2021-06-02 02:24:04 -04:00
parent 5497b1b68f
commit c687e31701

View file

@ -355,7 +355,7 @@
[filter]
ability=did_soul_rend
[/filter]
variable=unit
variable=runit
[/store_unit]
[harm_unit]
@ -369,7 +369,7 @@
[/harm_unit]
[floating_text]
x,y=$unit.x,$unit.y
x,y=$runit.x,$runit.y
# wmllint: markcheck off - nothing to translate here
text="<span color='#ff0000'>" + "5" + "</span>"
# wmllint: markcheck on
@ -399,10 +399,10 @@
[else]
{VARIABLE exp $opp[$i].level}
{VARIABLE_OP exp multiply 8}
{VARIABLE_OP unit.experience add $exp}
{VARIABLE_OP runit.experience add $exp}
{CLEAR_VARIABLE exp}
[unstore_unit]
variable=unit
variable=runit
find_vacant=no
[/unstore_unit]
[/else]
@ -418,7 +418,7 @@
animate=yes
[/heal_unit]
{CLEAR_VARIABLE opp}
{CLEAR_VARIABLE unit}
{CLEAR_VARIABLE runit}
{CLEAR_VARIABLE counter}
[/event]
#enddef
@ -693,12 +693,12 @@
[filter]
ability=did_consumption
[/filter]
variable=unit
variable=cunit
[/store_unit]
[if]
[have_location]
x,y=$unit.x,$unit.y
x,y=$cunit.x,$cunit.y
time_of_day=chaotic
[/have_location]
[then]
@ -713,14 +713,14 @@
[/harm_unit]
[floating_text]
x,y=$unit.x,$unit.y
x,y=$cunit.x,$cunit.y
# wmllint: markcheck off - nothing to translate here
text="<span color='#ff0000'>" + "2" + "</span>"
# wmllint: markcheck on
[/floating_text]
[/then]
[/if]
{CLEAR_VARIABLE unit}
{CLEAR_VARIABLE cunit}
[/event]
#enddef