Added support for conditionals to some more uniques (#5280)

* Added support for conditionals to some more uniques

* Implemented a new conditional

* Added the new conditional to the translations file

* Fixed tests

* Implemented requested changes
This commit is contained in:
Xander Lenstra
2021-09-22 08:24:16 +02:00
committed by GitHub
parent 4343137b82
commit b7467d3467
11 changed files with 78 additions and 48 deletions

View File

@ -1306,15 +1306,17 @@ ConditionalsPlacement =
# However, you should not translate the parts between the brackets, only move them around so that when
# translated in your language the sentence sounds natural.
#
# Note that every time a new conditional is added, it will be added below and this line will have to be retranslated.
# As this will happen quite a lot in the near future, you may want to wait with translating this
# until most conditionals have been added.
#
# Example: "+20% Strength <for [unitFilter] units> <when attacking> <vs [unitFilter] units> <in [tileFilter] tiles> <during the [eraName]>
# In what order should these conditionals between <> be translated?
# Note that this example currently doesn't make sense yet, as those conditionals do not exist, but they will in the future.
#
# As this is still under development, conditionals will be added al the time. As a result,
# any translations added for this string will be removed immediately in the next version when more
# conditionals are added. As we don't want to make you retranslate this same line over and over,
# it's removed for now, but it will return once all planned conditionals have been added.
<if this city has at least [amount] specialists> <when at war> <when not at war> =
# <if this city has at least [amount] specialists> <when at war> <when not at war> <while the empire is happy> =