From the indstrial era onwards, things change in religion (#5095)

* Improved redability

* From the industrial era onwards, religion goes into 'second phase'

* Fixed tests

* Fixed formula for buying great prophets starting from the industrial era

* Added `getMatchingUniques`, `hasUnique` to `IHasUniques`, cleaned up some code

* Fix compilation errors
This commit is contained in:
Xander Lenstra
2021-09-08 20:24:26 +02:00
committed by GitHub
parent 65695496f3
commit 3722fab38d
15 changed files with 174 additions and 84 deletions

View File

@ -137,7 +137,11 @@
"Mercantile": ["Provides [3] Happiness", "Provides a unique luxury"],
"Militaristic": ["Provides military units every [17] turns"]
},
"iconRGB": [63, 81, 182]
"iconRGB": [63, 81, 182],
"uniques": ["May not generate great prophet equivalents naturally",
"May buy [Great Prophet] units for [200] [Faith] [in all cities in which the majority religion is a major religion] at an increasing price ([100])",
"Starting in this era disables religion"
]
},
{
"name": "Modern era",
@ -168,7 +172,11 @@
"Mercantile": ["Provides [3] Happiness", "Provides a unique luxury"],
"Militaristic": ["Provides military units every [17] turns"]
},
"iconRGB": [33, 150, 243]
"iconRGB": [33, 150, 243],
"uniques": ["May not generate great prophet equivalents naturally",
"May buy [Great Prophet] units for [200] [Faith] [in all cities in which the majority religion is a major religion] at an increasing price ([100])",
"Starting in this era disables religion"
]
},
{
"name": "Atomic era",
@ -200,7 +208,11 @@
"Mercantile": ["Provides [3] Happiness", "Provides a unique luxury"],
"Militaristic": ["Provides military units every [17] turns"]
},
"iconRGB": [0, 150, 136]
"iconRGB": [0, 150, 136],
"uniques": ["May not generate great prophet equivalents naturally",
"May buy [Great Prophet] units for [200] [Faith] [in all cities in which the majority religion is a major religion] at an increasing price ([100])",
"Starting in this era disables religion"
]
},
{
"name": "Information era",
@ -236,7 +248,11 @@
"Mercantile": ["Provides [3] Happiness", "Provides a unique luxury"],
"Militaristic": ["Provides military units every [17] turns"]
},
"iconRGB": [76, 176, 81]
"iconRGB": [76, 176, 81],
"uniques": ["May not generate great prophet equivalents naturally",
"May buy [Great Prophet] units for [200] [Faith] [in all cities in which the majority religion is a major religion] at an increasing price ([100])",
"Starting in this era disables religion"
]
},
{ // Technically, this Era doesn't exist in the original game.
// But as it is _really_ usefull to have for testing, I'd like to keep it.
@ -271,6 +287,10 @@
"Mercantile": ["Provides [3] Happiness", "Provides a unique luxury"],
"Militaristic": ["Provides military units every [17] turns"]
},
"iconRGB": [76, 176, 81]
"iconRGB": [76, 176, 81],
"uniques": ["May not generate great prophet equivalents naturally",
"May buy [Great Prophet] units for [200] [Faith] [in all cities in which the majority religion is a major religion] at an increasing price ([100])",
"Starting in this era disables religion"
]
}
]