mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-31 07:09:26 +07:00
Get rid of old religion style actions!!! (#10192)
* Giant refactoring - get rid of old religion style actions!!! * Added special promotion to replace Great Mosque of Djenne ability * removed double promotion added my mistake * Added AI recognition of cities with bonus spread religion charges * Added "disallowed for pantheon" filtering to new unit actions * merge unit action changes with religion action changes * Use new invokeUnitAction function for simplicity * revert inquisitor unique change used for tests * separate modifier side effects from old-style side effects * Use canUSe shorthand for clarity
This commit is contained in:
@ -458,7 +458,8 @@
|
||||
"greatPersonPoints": {"Great Engineer": 1},
|
||||
"isWonder": true,
|
||||
"uniques": ["Gain a free [Mosque] [in this city]", "Hidden when religion is disabled",
|
||||
"[Missionary] units built [in this city] can [Spread Religion] [1] extra times", "[Great Prophet] units built [in this city] can [Spread Religion] [1] extra times"],
|
||||
"All newly-trained [Missionary] units [in this city] receive the [Devout] promotion",
|
||||
"All newly-trained [Great Prophet] units [in this city] receive the [Devout] promotion"],
|
||||
"requiredTech": "Theology",
|
||||
"quote": "'With the magnificence of eternity before us, let time, with all its fluctuations, dwindle into its own littleness.' - Thomas Chalmers"
|
||||
},
|
||||
|
@ -707,6 +707,10 @@
|
||||
"name": "Home Sweet Home", // only for Mehal Sefari and subsequent upgrades
|
||||
"uniques": ["[+30]% Strength decreasing with distance from the capital"]
|
||||
},
|
||||
{
|
||||
"name": "Devout",
|
||||
"uniques": ["Can Spread Religion <[1] additional time(s)>"]
|
||||
},
|
||||
{
|
||||
"name": "[Mohawk Warrior] ability",
|
||||
"uniques": ["[+33]% Strength <when fighting in [Forest] tiles>", "[+33]% Strength <when fighting in [Jungle] tiles>"]
|
||||
|
@ -1636,7 +1636,7 @@
|
||||
"unitType": "Civilian",
|
||||
"uniques": [
|
||||
"Can instantly construct a [Holy site] improvement <by consuming this unit> <if it hasn't used other actions yet>",
|
||||
"Can [Spread Religion] [4] times",
|
||||
"Can Spread Religion <[4] times>",
|
||||
"Removes other religions when spreading religion",
|
||||
"May found a religion",
|
||||
"May enhance a religion",
|
||||
@ -1675,7 +1675,9 @@
|
||||
{
|
||||
"name": "Missionary",
|
||||
"unitType": "Civilian",
|
||||
"uniques": ["Can [Spread Religion] [2] times", "May enter foreign tiles without open borders, but loses [250] religious strength each turn it ends there",
|
||||
"uniques": [
|
||||
"Can Spread Religion <[2] times>",
|
||||
"May enter foreign tiles without open borders, but loses [250] religious strength each turn it ends there",
|
||||
"Can be purchased with [Faith] [in all cities in which the majority religion is a major religion]",
|
||||
"[-1] Sight", "Unbuildable", "Religious Unit", "Hidden when religion is disabled"],
|
||||
"movement": 4,
|
||||
@ -1685,8 +1687,8 @@
|
||||
"name": "Inquisitor",
|
||||
"unitType": "Civilian",
|
||||
"uniques": ["Prevents spreading of religion to the city it is next to",
|
||||
"Can [Remove Foreign religions from your own cities] [1] times",
|
||||
"Can be purchased with [Faith] [in all cities in which the majority religion is an enhanced religion]",
|
||||
"Can remove other religions from cities <in [Friendly] tiles> <once> <after which this unit is consumed>",
|
||||
"Can be purchased with [Faith] [in all cities in which the majority religion is a major religion]",
|
||||
"[+1] Sight", "Hidden when religion is disabled", "Unbuildable", "Religious Unit"
|
||||
],
|
||||
"movement": 3
|
||||
|
@ -1294,7 +1294,7 @@
|
||||
"unitType": "Civilian",
|
||||
"uniques": [
|
||||
"Can instantly construct a [Holy site] improvement <by consuming this unit> <if it hasn't used other actions yet>",
|
||||
"Can [Spread Religion] [4] times",
|
||||
"Can Spread Religion <[4] times>",
|
||||
"Removes other religions when spreading religion",
|
||||
"May found a religion",
|
||||
"May enhance a religion",
|
||||
@ -1333,7 +1333,9 @@
|
||||
{
|
||||
"name": "Missionary",
|
||||
"unitType": "Civilian",
|
||||
"uniques": ["Can [Spread Religion] [2] times", "May enter foreign tiles without open borders, but loses [250] religious strength each turn it ends there",
|
||||
"uniques": [
|
||||
"Can Spread Religion <[2] times>",
|
||||
"May enter foreign tiles without open borders, but loses [250] religious strength each turn it ends there",
|
||||
"Can be purchased with [Faith] [in all cities in which the majority religion is a major religion]",
|
||||
"[-1] Sight", "Unbuildable", "Religious Unit", "Hidden when religion is disabled"],
|
||||
"movement": 4,
|
||||
@ -1343,7 +1345,7 @@
|
||||
"name": "Inquisitor",
|
||||
"unitType": "Civilian",
|
||||
"uniques": ["Prevents spreading of religion to the city it is next to",
|
||||
"Can [Remove Foreign religions from your own cities] [1] times",
|
||||
"Can remove other religions from cities <in [Friendly] tiles> <once> <after which this unit is consumed>",
|
||||
"Can be purchased with [Faith] [in all cities in which the majority religion is an enhanced religion]",
|
||||
"[+1] Sight", "Hidden when religion is disabled", "Unbuildable", "Religious Unit"
|
||||
],
|
||||
|
Reference in New Issue
Block a user