Implementation of conditionals, but better than before (#5187)

* Implementation of conditionals, but better than before

* Updated the unique while I was at it

* Fixed bug where conditionals would never apply

* Capitalization

* Minor code cleaning

* Better documentation & variable names

* Changed translation strategy

* Added missing import?
This commit is contained in:
Xander Lenstra
2021-09-18 22:07:53 +02:00
committed by GitHub
parent 8cff3fda49
commit 01bfd17594
9 changed files with 309 additions and 68 deletions

View File

@ -24,7 +24,7 @@
{
"name": "Fertility Rites",
"type": "Pantheon",
"uniques": ["+[10]% Growth [in this city]"]
"uniques": ["[+10]% growth [in this city]"]
// Preferably I would not have a cityFilter here, but doing so requires no additional implementation
},
{
@ -193,7 +193,7 @@
{
"name": "Swords into Ploughshares",
"type": "Follower",
"uniques": ["[+15]% growth [in this city] when not at war"]
"uniques": ["[+15]% growth [in this city] <when not at war>"]
},
///////////////////////////////////////// Founder beliefs //////////////////////////////////////////

View File

@ -24,7 +24,7 @@
},
{
"name": "Landed Elite",
"uniques": ["+[10]% growth [in capital]", "[+2 Food] [in capital]"],
"uniques": ["[+10]% growth [in capital]", "[+2 Food] [in capital]"],
"requires": ["Legalism"],
"row": 2,
"column": 2
@ -38,7 +38,7 @@
},
{
"name": "Tradition Complete",
"uniques": ["+[15]% growth [in all cities]","Provides a [Aqueduct] in your first [4] cities for free"]
"uniques": ["[+15]% growth [in all cities]","Provides a [Aqueduct] in your first [4] cities for free"]
}
]
},