UtBS: add female variants to dehydration text
This commit is contained in:
parent
d351e90c21
commit
df19ea9b6f
1 changed files with 52 additions and 13 deletions
|
@ -100,12 +100,31 @@ Hd, Dd*, Dd^E*, Rd #enddef
|
|||
dehydrated=yes
|
||||
[/status]
|
||||
[/modify_unit]
|
||||
[floating_text]
|
||||
x=$dehydrating_units[$i].x
|
||||
y=$dehydrating_units[$i].y
|
||||
text= _ "thirst"
|
||||
{COLOR_HARM}
|
||||
[/floating_text]
|
||||
|
||||
[if]
|
||||
[variable]
|
||||
name=dehydrating_units[$i].gender
|
||||
equals=female
|
||||
[/variable]
|
||||
|
||||
[then]
|
||||
[floating_text]
|
||||
x=$dehydrating_units[$i].x
|
||||
y=$dehydrating_units[$i].y
|
||||
text= _ "female^thirst"
|
||||
{COLOR_HARM}
|
||||
[/floating_text]
|
||||
[/then]
|
||||
|
||||
[else]
|
||||
[floating_text]
|
||||
x=$dehydrating_units[$i].x
|
||||
y=$dehydrating_units[$i].y
|
||||
text= _ "thirst"
|
||||
{COLOR_HARM}
|
||||
[/floating_text]
|
||||
[/else]
|
||||
[/if]
|
||||
[/else]
|
||||
[/if]
|
||||
[/do]
|
||||
|
@ -150,12 +169,31 @@ Hd, Dd*, Dd^E*, Rd #enddef
|
|||
dehydrated=no
|
||||
[/status]
|
||||
[/modify_unit]
|
||||
[floating_text]
|
||||
x=$hydrating_units[$i].x
|
||||
y=$hydrating_units[$i].y
|
||||
text= _ "refreshed"
|
||||
{COLOR_HEAL}
|
||||
[/floating_text]
|
||||
|
||||
[if]
|
||||
[variable]
|
||||
name=hydrating_units[$i].gender
|
||||
equals=female
|
||||
[/variable]
|
||||
|
||||
[then]
|
||||
[floating_text]
|
||||
x=$hydrating_units[$i].x
|
||||
y=$hydrating_units[$i].y
|
||||
text= _ "female^refreshed"
|
||||
{COLOR_HEAL}
|
||||
[/floating_text]
|
||||
[/then]
|
||||
|
||||
[else]
|
||||
[floating_text]
|
||||
x=$hydrating_units[$i].x
|
||||
y=$hydrating_units[$i].y
|
||||
text= _ "refreshed"
|
||||
{COLOR_HEAL}
|
||||
[/floating_text]
|
||||
[/else]
|
||||
[/if]
|
||||
|
||||
[remove_object]
|
||||
x,y=$hydrating_units[$i].x,$hydrating_units[$i].y
|
||||
|
@ -254,7 +292,8 @@ Hd, Dd*, Dd^E*, Rd #enddef
|
|||
[unstore_unit]
|
||||
variable=unit
|
||||
find_vacant=no
|
||||
text= _ "refreshed"
|
||||
male_text= _ "refreshed"
|
||||
female_text= _ "female^refreshed"
|
||||
{COLOR_HEAL}
|
||||
advance=no
|
||||
[/unstore_unit]
|
||||
|
|
Loading…
Add table
Reference in a new issue