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 dehydrated=yes
[/status] [/status]
[/modify_unit] [/modify_unit]
[floating_text]
x=$dehydrating_units[$i].x [if]
y=$dehydrating_units[$i].y [variable]
text= _ "thirst" name=dehydrating_units[$i].gender
{COLOR_HARM} equals=female
[/floating_text] [/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] [/else]
[/if] [/if]
[/do] [/do]
@ -150,12 +169,31 @@ Hd, Dd*, Dd^E*, Rd #enddef
dehydrated=no dehydrated=no
[/status] [/status]
[/modify_unit] [/modify_unit]
[floating_text]
x=$hydrating_units[$i].x [if]
y=$hydrating_units[$i].y [variable]
text= _ "refreshed" name=hydrating_units[$i].gender
{COLOR_HEAL} equals=female
[/floating_text] [/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] [remove_object]
x,y=$hydrating_units[$i].x,$hydrating_units[$i].y x,y=$hydrating_units[$i].x,$hydrating_units[$i].y
@ -254,7 +292,8 @@ Hd, Dd*, Dd^E*, Rd #enddef
[unstore_unit] [unstore_unit]
variable=unit variable=unit
find_vacant=no find_vacant=no
text= _ "refreshed" male_text= _ "refreshed"
female_text= _ "female^refreshed"
{COLOR_HEAL} {COLOR_HEAL}
advance=no advance=no
[/unstore_unit] [/unstore_unit]