mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-24 03:53:12 -04:00
Update incorrect stats for policies and buildings (#13656)
* fix automated ranged units not heading to enemy city * fix distance from city typo * Address points made in PR * priotirize tiles without retaliation * remove dangerous tiles logic * resolve review with alternative approach * faster exit if no sight * automated units auto upgrade if enabled * simplified condition * fix incorrect building stats * update stats for policies and buildings * update wonder stats * palace cost is 0
This commit is contained in:
parent
d0b4250011
commit
e5fdcde836
@ -9,8 +9,8 @@
|
|||||||
"science": 3,
|
"science": 3,
|
||||||
"gold": 3,
|
"gold": 3,
|
||||||
"culture": 1,
|
"culture": 1,
|
||||||
"cityStrength": 2,
|
"cityStrength": 2.5,
|
||||||
"cost": 1,
|
"cost": 0,
|
||||||
"uniques": ["Indicates the capital city"]
|
"uniques": ["Indicates the capital city"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -530,15 +530,14 @@
|
|||||||
"hurryCostModifier": 25,
|
"hurryCostModifier": 25,
|
||||||
"requiredNearbyImprovedResources": ["Iron"],
|
"requiredNearbyImprovedResources": ["Iron"],
|
||||||
"requiredTech": "Metal Casting",
|
"requiredTech": "Metal Casting",
|
||||||
"uniques": ["[+15]% Production when constructing [Spaceship part] units [in this city]",
|
"uniques": ["[+15]% Production when constructing [Land] units [in this city]",
|
||||||
"[+15]% Production when constructing [Land] units [in this city]",
|
|
||||||
"[+1 Production] from [Iron] tiles [in this city]"]
|
"[+1 Production] from [Iron] tiles [in this city]"]
|
||||||
},
|
},
|
||||||
// Column 6
|
// Column 6
|
||||||
{
|
{
|
||||||
"name": "Harbor",
|
"name": "Harbor",
|
||||||
"cost": 120,
|
"cost": 120,
|
||||||
"maintenance": 2,
|
"maintenance": 3,
|
||||||
"hurryCostModifier": 25,
|
"hurryCostModifier": 25,
|
||||||
"uniques": ["[+1 Production] from [Water resource] tiles [in this city]",
|
"uniques": ["[+1 Production] from [Water resource] tiles [in this city]",
|
||||||
"Connects trade routes over water","Must be next to [Coast]"],
|
"Connects trade routes over water","Must be next to [Coast]"],
|
||||||
@ -736,7 +735,7 @@
|
|||||||
"culture": 1,
|
"culture": 1,
|
||||||
"isWonder": true,
|
"isWonder": true,
|
||||||
"greatPersonPoints": {"Great Artist": 1},
|
"greatPersonPoints": {"Great Artist": 1},
|
||||||
"uniques": ["[-10]% Unhappiness from [Population] [in all cities]"],
|
"uniques": ["[-10]% Unhappiness from [Population] [in all non-occupied cities]"],
|
||||||
"requiredTech": "Banking",
|
"requiredTech": "Banking",
|
||||||
"quote": "'Most of us can, as we choose, make of this world either a palace or a prison' - John Lubbock"
|
"quote": "'Most of us can, as we choose, make of this world either a palace or a prison' - John Lubbock"
|
||||||
},
|
},
|
||||||
@ -771,7 +770,7 @@
|
|||||||
{
|
{
|
||||||
"name": "Seaport",
|
"name": "Seaport",
|
||||||
"hurryCostModifier": 25,
|
"hurryCostModifier": 25,
|
||||||
"maintenance": 3,
|
"maintenance": 2,
|
||||||
"requiredBuilding": "Harbor",
|
"requiredBuilding": "Harbor",
|
||||||
"uniques": ["[+1 Production, +1 Gold] from [Water resource] tiles [in this city]",
|
"uniques": ["[+1 Production, +1 Gold] from [Water resource] tiles [in this city]",
|
||||||
"Must be next to [Coast]", "[+15]% Production when constructing [Water] units [in this city]"],
|
"Must be next to [Coast]", "[+15]% Production when constructing [Water] units [in this city]"],
|
||||||
@ -819,7 +818,7 @@
|
|||||||
"replaces": "Windmill",
|
"replaces": "Windmill",
|
||||||
"uniqueTo": "Austria",
|
"uniqueTo": "Austria",
|
||||||
"production": 2,
|
"production": 2,
|
||||||
"percentStatBonus": {"production": 10},
|
"percentStatBonus": {"production": 5},
|
||||||
"specialistSlots": {"Engineer": 1},
|
"specialistSlots": {"Engineer": 1},
|
||||||
"hurryCostModifier": 25,
|
"hurryCostModifier": 25,
|
||||||
"maintenance": 2,
|
"maintenance": 2,
|
||||||
@ -929,7 +928,7 @@
|
|||||||
{
|
{
|
||||||
"name": "Stock Exchange",
|
"name": "Stock Exchange",
|
||||||
"gold": 3,
|
"gold": 3,
|
||||||
"percentStatBonus": {"gold": 25},
|
"percentStatBonus": {"gold": 33},
|
||||||
"specialistSlots": {"Merchant": 2},
|
"specialistSlots": {"Merchant": 2},
|
||||||
"hurryCostModifier": 15,
|
"hurryCostModifier": 15,
|
||||||
"requiredBuilding": "Bank",
|
"requiredBuilding": "Bank",
|
||||||
@ -1130,7 +1129,6 @@
|
|||||||
{
|
{
|
||||||
"name": "CN Tower",
|
"name": "CN Tower",
|
||||||
"isWonder": true,
|
"isWonder": true,
|
||||||
"culture": 1,
|
|
||||||
"greatPersonPoints": {"Great Merchant": 1},
|
"greatPersonPoints": {"Great Merchant": 1},
|
||||||
"uniques": ["[+1] population [in all cities]", "[+1 Happiness] [in all cities]", "Gain a free [Broadcast Tower] [in all cities]"],
|
"uniques": ["[+1] population [in all cities]", "[+1 Happiness] [in all cities]", "Gain a free [Broadcast Tower] [in all cities]"],
|
||||||
"requiredTech": "Telecommunications",
|
"requiredTech": "Telecommunications",
|
||||||
@ -1158,6 +1156,7 @@
|
|||||||
{
|
{
|
||||||
"name": "Spaceship Factory",
|
"name": "Spaceship Factory",
|
||||||
"production": 3,
|
"production": 3,
|
||||||
|
"maintenance": 3,
|
||||||
"requiredResource": "Aluminum",
|
"requiredResource": "Aluminum",
|
||||||
"cost": 360,
|
"cost": 360,
|
||||||
"requiredBuilding": "Factory",
|
"requiredBuilding": "Factory",
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
"science": 3,
|
"science": 3,
|
||||||
"gold": 3,
|
"gold": 3,
|
||||||
"culture": 1,
|
"culture": 1,
|
||||||
"cityStrength": 2,
|
"cityStrength": 2.5,
|
||||||
"cost": 1,
|
"cost": 0,
|
||||||
"uniques": ["Indicates the capital city"]
|
"uniques": ["Indicates the capital city"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -130,7 +130,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Walls",
|
"name": "Walls",
|
||||||
"cityStrength": 5,
|
"cityStrength": 4,
|
||||||
"cityHealth": 50,
|
"cityHealth": 50,
|
||||||
"hurryCostModifier": 25,
|
"hurryCostModifier": 25,
|
||||||
"requiredTech": "Masonry",
|
"requiredTech": "Masonry",
|
||||||
@ -390,7 +390,9 @@
|
|||||||
"name": "Monastery",
|
"name": "Monastery",
|
||||||
"cost": 120,
|
"cost": 120,
|
||||||
"culture": 2,
|
"culture": 2,
|
||||||
"uniques": ["[+2 Culture] from [Wine] tiles [in this city]", "Destroyed when the city is captured"],
|
"uniques": ["[+2 Culture] from [Wine] tiles [in this city]",
|
||||||
|
"[+2 Culture] from [Incense] tiles [in this city]",
|
||||||
|
"Destroyed when the city is captured"],
|
||||||
"requiredNearbyImprovedResources": ["Incense", "Wine"],
|
"requiredNearbyImprovedResources": ["Incense", "Wine"],
|
||||||
"requiredTech": "Theology"
|
"requiredTech": "Theology"
|
||||||
},
|
},
|
||||||
@ -468,15 +470,14 @@
|
|||||||
"hurryCostModifier": 25,
|
"hurryCostModifier": 25,
|
||||||
"requiredNearbyImprovedResources": ["Iron"],
|
"requiredNearbyImprovedResources": ["Iron"],
|
||||||
"requiredTech": "Metal Casting",
|
"requiredTech": "Metal Casting",
|
||||||
"uniques": ["[+15]% Production when constructing [Spaceship part] units [in this city]",
|
"uniques": ["[+15]% Production when constructing [Land] units [in this city]",
|
||||||
"[+15]% Production when constructing [Land] units [in this city]",
|
|
||||||
"[+1 Production] from [Iron] tiles [in this city]"]
|
"[+1 Production] from [Iron] tiles [in this city]"]
|
||||||
},
|
},
|
||||||
// Column 6
|
// Column 6
|
||||||
{
|
{
|
||||||
"name": "Harbor",
|
"name": "Harbor",
|
||||||
"cost": 120,
|
"cost": 120,
|
||||||
"maintenance": 2,
|
"maintenance": 3,
|
||||||
"hurryCostModifier": 25,
|
"hurryCostModifier": 25,
|
||||||
"uniques": ["[+1 Production] from [Water resource] tiles [in this city]",
|
"uniques": ["[+1 Production] from [Water resource] tiles [in this city]",
|
||||||
"Connects trade routes over water","Must be next to [Coast]"],
|
"Connects trade routes over water","Must be next to [Coast]"],
|
||||||
@ -525,7 +526,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Castle",
|
"name": "Castle",
|
||||||
"cityStrength": 7,
|
"cityStrength": 4,
|
||||||
"cityHealth": 25,
|
"cityHealth": 25,
|
||||||
"hurryCostModifier": 25,
|
"hurryCostModifier": 25,
|
||||||
"requiredBuilding": "Walls",
|
"requiredBuilding": "Walls",
|
||||||
@ -537,7 +538,7 @@
|
|||||||
"cost": 150,
|
"cost": 150,
|
||||||
"replaces": "Castle",
|
"replaces": "Castle",
|
||||||
"uniqueTo": "India",
|
"uniqueTo": "India",
|
||||||
"cityStrength": 7,
|
"cityStrength": 6,
|
||||||
"cityHealth": 25,
|
"cityHealth": 25,
|
||||||
"culture": 2,
|
"culture": 2,
|
||||||
"hurryCostModifier": 25,
|
"hurryCostModifier": 25,
|
||||||
@ -630,7 +631,7 @@
|
|||||||
"culture": 1,
|
"culture": 1,
|
||||||
"isWonder": true,
|
"isWonder": true,
|
||||||
"greatPersonPoints": {"Great Artist": 1},
|
"greatPersonPoints": {"Great Artist": 1},
|
||||||
"uniques": ["[-10]% Unhappiness from [Population] [in all cities]"],
|
"uniques": ["[-10]% Unhappiness from [Population] [in all non-occupied cities]"],
|
||||||
"requiredTech": "Banking",
|
"requiredTech": "Banking",
|
||||||
"quote": "'Most of us can, as we choose, make of this world either a palace or a prison' - John Lubbock"
|
"quote": "'Most of us can, as we choose, make of this world either a palace or a prison' - John Lubbock"
|
||||||
},
|
},
|
||||||
@ -646,7 +647,7 @@
|
|||||||
{
|
{
|
||||||
"name": "Seaport",
|
"name": "Seaport",
|
||||||
"hurryCostModifier": 25,
|
"hurryCostModifier": 25,
|
||||||
"maintenance": 3,
|
"maintenance": 2,
|
||||||
"requiredBuilding": "Harbor",
|
"requiredBuilding": "Harbor",
|
||||||
"uniques": ["[+1 Production, +1 Gold] from [Water resource] tiles [in this city]",
|
"uniques": ["[+1 Production, +1 Gold] from [Water resource] tiles [in this city]",
|
||||||
"Must be next to [Coast]", "[+15]% Production when constructing [Water] units [in this city]"],
|
"Must be next to [Coast]", "[+15]% Production when constructing [Water] units [in this city]"],
|
||||||
@ -774,7 +775,7 @@
|
|||||||
{
|
{
|
||||||
"name": "Arsenal",
|
"name": "Arsenal",
|
||||||
"cost": 300,
|
"cost": 300,
|
||||||
"cityStrength": 9,
|
"cityStrength": 6,
|
||||||
"cityHealth": 25,
|
"cityHealth": 25,
|
||||||
"hurryCostModifier": 25,
|
"hurryCostModifier": 25,
|
||||||
"requiredBuilding": "Castle",
|
"requiredBuilding": "Castle",
|
||||||
@ -793,7 +794,7 @@
|
|||||||
{
|
{
|
||||||
"name": "Stock Exchange",
|
"name": "Stock Exchange",
|
||||||
"gold": 3,
|
"gold": 3,
|
||||||
"percentStatBonus": {"gold": 25},
|
"percentStatBonus": {"gold": 33},
|
||||||
"specialistSlots": {"Merchant": 2},
|
"specialistSlots": {"Merchant": 2},
|
||||||
"hurryCostModifier": 15,
|
"hurryCostModifier": 15,
|
||||||
"requiredBuilding": "Bank",
|
"requiredBuilding": "Bank",
|
||||||
@ -843,7 +844,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Cristo Redentor",
|
"name": "Cristo Redentor",
|
||||||
"culture": 5,
|
"culture": 4,
|
||||||
"isWonder": true,
|
"isWonder": true,
|
||||||
"greatPersonPoints": {"Great Artist": 2},
|
"greatPersonPoints": {"Great Artist": 2},
|
||||||
"uniques": ["[-10]% Culture cost of adopting new Policies"],
|
"uniques": ["[-10]% Culture cost of adopting new Policies"],
|
||||||
@ -888,6 +889,7 @@
|
|||||||
{
|
{
|
||||||
"name": "Sydney Opera House",
|
"name": "Sydney Opera House",
|
||||||
"isWonder": true,
|
"isWonder": true,
|
||||||
|
"culture": 4,
|
||||||
"greatPersonPoints": {"Great Artist": 2},
|
"greatPersonPoints": {"Great Artist": 2},
|
||||||
"percentStatBonus": {"culture": 50},
|
"percentStatBonus": {"culture": 50},
|
||||||
"uniques": ["Free Social Policy","Must be next to [Coast]"],
|
"uniques": ["Free Social Policy","Must be next to [Coast]"],
|
||||||
@ -945,6 +947,7 @@
|
|||||||
{
|
{
|
||||||
"name": "Spaceship Factory",
|
"name": "Spaceship Factory",
|
||||||
"production": 3,
|
"production": 3,
|
||||||
|
"maintenance": 3,
|
||||||
"requiredResource": "Aluminum",
|
"requiredResource": "Aluminum",
|
||||||
"cost": 360,
|
"cost": 360,
|
||||||
"requiredBuilding": "Factory",
|
"requiredBuilding": "Factory",
|
||||||
|
@ -146,7 +146,7 @@
|
|||||||
"Scientific": 0
|
"Scientific": 0
|
||||||
},
|
},
|
||||||
"uniques": [
|
"uniques": [
|
||||||
"[+33]% Strength <vs [Barbarian] units>",
|
"[+25]% Strength <vs [Barbarian] units>",
|
||||||
"Earn [100]% of killed [Barbarian] unit's [Strength] as [Culture]",
|
"Earn [100]% of killed [Barbarian] unit's [Strength] as [Culture]",
|
||||||
"Notified of new Barbarian encampments"
|
"Notified of new Barbarian encampments"
|
||||||
],
|
],
|
||||||
@ -359,10 +359,7 @@
|
|||||||
"name": "Naval Tradition",
|
"name": "Naval Tradition",
|
||||||
"uniques": [
|
"uniques": [
|
||||||
"[+1] Movement <for [{Military} {Water}] units>",
|
"[+1] Movement <for [{Military} {Water}] units>",
|
||||||
"[+1] Sight <for [{Military} {Water}] units>",
|
"[+1] Sight <for [{Military} {Water}] units>"
|
||||||
"Free [Great General] appears"
|
|
||||||
// "[+2] Movement <for [Great Admiral] units>"
|
|
||||||
// ToDo: Should be "Free [Great Admiral] appears"
|
|
||||||
],
|
],
|
||||||
"row": 1,
|
"row": 1,
|
||||||
"column": 2
|
"column": 2
|
||||||
@ -387,11 +384,7 @@
|
|||||||
{
|
{
|
||||||
"name": "Mercantilism",
|
"name": "Mercantilism",
|
||||||
"uniques": [
|
"uniques": [
|
||||||
"[Gold] cost of purchasing items in cities [-25]%",
|
"[Gold] cost of purchasing items in cities [-25]%"
|
||||||
"[+1 Science] from every [Mint]",
|
|
||||||
"[+1 Science] from every [Market]",
|
|
||||||
"[+1 Science] from every [Bank]",
|
|
||||||
"[+1 Science] from every [Stock Exchange]"
|
|
||||||
],
|
],
|
||||||
"requires": ["Trade Unions"],
|
"requires": ["Trade Unions"],
|
||||||
"row": 2,
|
"row": 2,
|
||||||
@ -598,7 +591,7 @@
|
|||||||
{
|
{
|
||||||
"name": "Autocracy Complete",
|
"name": "Autocracy Complete",
|
||||||
"uniques": [
|
"uniques": [
|
||||||
"[+25]% Strength <when attacking> <for [Military] units> <for [30] turns>"
|
"[+20]% Strength <when attacking> <for [Military] units> <for [30] turns>"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -656,9 +649,8 @@
|
|||||||
"name": "Communism",
|
"name": "Communism",
|
||||||
"requires": ["Socialism"],
|
"requires": ["Socialism"],
|
||||||
"uniques": [
|
"uniques": [
|
||||||
"[+1 Production] [in all cities]",
|
"[+2 Production] [in all cities]",
|
||||||
"[+10]% Production when constructing [All] buildings [in all cities]",
|
"[+10]% Production when constructing [All] buildings [in all cities]"
|
||||||
"[+1 Production] from every [Quarry]"
|
|
||||||
],
|
],
|
||||||
"row": 3,
|
"row": 3,
|
||||||
"column": 3
|
"column": 3
|
||||||
|
@ -40,7 +40,7 @@ class Building : RulesetStatsObject(), INonPerpetualConstruction {
|
|||||||
|
|
||||||
/** This Building can only be built if one of these resources is nearby - it must be improved! */
|
/** This Building can only be built if one of these resources is nearby - it must be improved! */
|
||||||
var requiredNearbyImprovedResources: List<String>? = null
|
var requiredNearbyImprovedResources: List<String>? = null
|
||||||
var cityStrength = 0
|
var cityStrength = 0.0
|
||||||
var cityHealth = 0
|
var cityHealth = 0
|
||||||
var replaces: String? = null
|
var replaces: String? = null
|
||||||
var uniqueTo: String? = null
|
var uniqueTo: String? = null
|
||||||
|
@ -32,7 +32,7 @@ object BuildingDescriptions {
|
|||||||
if (replacementTextForUniques.isNotEmpty()) infoList += replacementTextForUniques
|
if (replacementTextForUniques.isNotEmpty()) infoList += replacementTextForUniques
|
||||||
else infoList += getUniquesStringsWithoutDisablers(uniqueInclusionFilter)
|
else infoList += getUniquesStringsWithoutDisablers(uniqueInclusionFilter)
|
||||||
}
|
}
|
||||||
if (cityStrength != 0) infoList += "{City strength} +$cityStrength"
|
if (cityStrength != 0.0) infoList += "{City strength} +$cityStrength"
|
||||||
if (cityHealth != 0) infoList += "{City health} +$cityHealth"
|
if (cityHealth != 0) infoList += "{City health} +$cityHealth"
|
||||||
val separator = if (multiline) "\n" else "; "
|
val separator = if (multiline) "\n" else "; "
|
||||||
return infoList.joinToString(separator) { it.tr() }
|
return infoList.joinToString(separator) { it.tr() }
|
||||||
@ -77,7 +77,7 @@ object BuildingDescriptions {
|
|||||||
if (requiredNearbyImprovedResources != null)
|
if (requiredNearbyImprovedResources != null)
|
||||||
translatedLines += "Requires improved [${requiredNearbyImprovedResources!!.joinToString("/") { it.tr() }}] near city".tr()
|
translatedLines += "Requires improved [${requiredNearbyImprovedResources!!.joinToString("/") { it.tr() }}] near city".tr()
|
||||||
|
|
||||||
if (cityStrength != 0) translatedLines += "{City strength} +$cityStrength".tr()
|
if (cityStrength != 0.0) translatedLines += "{City strength} +$cityStrength".tr()
|
||||||
if (cityHealth != 0) translatedLines += "{City health} +$cityHealth".tr()
|
if (cityHealth != 0) translatedLines += "{City health} +$cityHealth".tr()
|
||||||
if (maintenance != 0 && !isFree) translatedLines += "{Maintenance cost}: $maintenance {Gold}".tr()
|
if (maintenance != 0 && !isFree) translatedLines += "{Maintenance cost}: $maintenance {Gold}".tr()
|
||||||
if (showAdditionalInfo) additionalDescription(building, city, translatedLines)
|
if (showAdditionalInfo) additionalDescription(building, city, translatedLines)
|
||||||
@ -241,8 +241,8 @@ object BuildingDescriptions {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cityStrength != 0 || cityHealth != 0 || maintenance != 0) textList += FormattedLine()
|
if (cityStrength != 0.0 || cityHealth != 0 || maintenance != 0) textList += FormattedLine()
|
||||||
if (cityStrength != 0) textList += FormattedLine("{City strength} +$cityStrength")
|
if (cityStrength != 0.0) textList += FormattedLine("{City strength} +$cityStrength")
|
||||||
if (cityHealth != 0) textList += FormattedLine("{City health} +$cityHealth")
|
if (cityHealth != 0) textList += FormattedLine("{City health} +$cityHealth")
|
||||||
if (maintenance != 0) textList += FormattedLine("{Maintenance cost}: $maintenance {Gold}")
|
if (maintenance != 0) textList += FormattedLine("{Maintenance cost}: $maintenance {Gold}")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user