UtBS: add female variants to dehydration text

This commit is contained in:
Artem Khrapov 2020-11-02 19:39:15 +03:00 committed by GitHub
parent d351e90c21
commit df19ea9b6f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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]