Espionage Uniques, Buildings and Policy (#11401)

* Added OneTimeSpiesLevelUp, OneTimeGainSpy, SpyEffectiveness, EnemySpyEffectiveness and HiddenWithoutEspionage Uniques

* Spy effectiveness affects stealing tech and rigging elections

* Fixed HiddenWithoutEspionage

* Added Constabulary and Police Station

* Added cityFilter to SpyEffectiveness

* Added national Intelligence agency

* Added Great Firewall

* Fixed great firewall having a float value

* EspionageManager addSpy now returns Spy instead of name

* Added some simple espionage tests

* Fixed OneTimeSpiesLevelUp still wanting parameter

* Spy efficiency occurs after skill modifier

* Added another test

* Added Police State spy efficiency reduction unique

* Fixed "Hidden when espionage is disabled" wording

* Fixed "effectiveness" wording

* Changed "enemy spy effectiveness" unique to use negative matters

* Spy effectiveness only affect tech steal rate

* Changed "Gain an extra spy" and "Promotes all spies" uniques

* Removed Police State comment that is no longer accurate

* Changed spy effectiveness to be multiplicative
This commit is contained in:
Oskar Niesen
2024-04-09 15:12:21 -05:00
committed by GitHub
parent 35c3f7b191
commit ef9965e218
13 changed files with 203 additions and 18 deletions

View File

@ -709,6 +709,14 @@
"requiredBuilding": "Market",
"requiredTech": "Banking"
},
{
"name": "Constabulary",
"cost": 160,
"maintenance": 1,
"hurryCostModifier": 10,
"uniques": ["Hidden when espionage is disabled", "[-25]% enemy spy effectiveness [in this city]"],
"requiredTech": "Banking"
},
// will be introduced in BNW expansion pack
// {
// "name": "Hanse",
@ -934,6 +942,15 @@
"uniques": ["Must be on [River]","[+1 Production] from [River] tiles [in this city]"],
"requiredTech": "Electricity"
},
{
"name": "Police Station",
"cost": 300,
"maintenance": 1,
"hurryCostModifier": 10,
"uniques": ["Hidden when espionage is disabled", "[-25]% enemy spy effectiveness [in this city]"],
"requiredBuilding": "Constabulary",
"requiredTech": "Electricity"
},
// Modern Era
@ -964,6 +981,15 @@
"requiredTech": "Radio",
"quote": "'We live only to discover beauty, all else is a form of waiting' - Kahlil Gibran"
},
{
"name": "National Intelligence Agency",
"cost": 120,
"culture": 1,
"isNationalWonder": true,
"uniques": ["Hidden when espionage is disabled", "Gain an extra spy", "Promotes all spies", "[-15]% enemy spy effectiveness [in this city]",
"Only available <if [Police Station] is constructed in all [non-[Puppeted]] cities>", "Cost increases by [30] per owned city"],
"requiredTech": "Radio"
},
{
"name": "Military Base",
"cityStrength": 12,
@ -1083,6 +1109,13 @@
"Hidden when [Scientific] Victory is disabled", "Cannot be hurried"],
"requiredTech": "Rocketry"
},
{
"name": "Great Firewall",
"isWonder": true,
"uniques": ["Hidden when espionage is disabled", "[-99]% enemy spy effectiveness [in this city]",
"[-25]% enemy spy effectiveness [in all cities]",],
"requiredTech": "Computers"
},
// Information Era

View File

@ -577,9 +577,9 @@
"name": "Police State",
"uniques": [
"[+3 Happiness] from every [Courthouse]",
"[+100]% Production when constructing [Courthouse] buildings [in all cities]"
"[+100]% Production when constructing [Courthouse] buildings [in all cities]",
"[-25]% enemy spy effectiveness [in all cities]"
],
// There are also some uniques regarding espoinage, which as of this writing is not yet implemented
"requires": ["Militarism"],
"row": 2,
"column": 4