mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-07 00:41:39 +07:00
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:
@ -275,7 +275,7 @@
|
||||
{
|
||||
"name": "Rationalism",
|
||||
"era": "Renaissance era",
|
||||
"uniques": ["[15]% [Science] while the empire is happy", "Incompatible with [Piety]"],
|
||||
"uniques": ["[+15]% [Science] <while the empire is happy>", "Incompatible with [Piety]"],
|
||||
"policies": [
|
||||
{
|
||||
"name": "Secularism",
|
||||
|
@ -1372,7 +1372,7 @@ ConditionalsPlacement = after
|
||||
# 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.
|
||||
|
||||
<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>
|
||||
#<if this city has at least [amount] specialists> <when at war> <when not at war> <while the empire is happy> = <if this city has at least [amount] specialists> <when at war> <when not at war> <while the empire is happy>
|
||||
|
||||
|
||||
|
||||
|
@ -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> =
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user