mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 06:16:37 -04:00
Finished Rationalism tree!
This commit is contained in:
parent
0eaad31ce1
commit
c0a9690d2a
@ -295,7 +295,6 @@
|
|||||||
"name": "Commerce Complete",
|
"name": "Commerce Complete",
|
||||||
"effect": "+1 gold from every trading post, double gold from Great Merchant trade missions",
|
"effect": "+1 gold from every trading post, double gold from Great Merchant trade missions",
|
||||||
"uniques": ["[+1 Gold] from every [Trading post]", "Double gold from Great Merchant trade missions"]
|
"uniques": ["[+1 Gold] from every [Trading post]", "Double gold from Great Merchant trade missions"]
|
||||||
"uniques": "+1
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -331,6 +330,7 @@
|
|||||||
{
|
{
|
||||||
"name": "Sovereignty",
|
"name": "Sovereignty",
|
||||||
"effect": "+15% science while empire is happy",
|
"effect": "+15% science while empire is happy",
|
||||||
|
"uniques": ["+15% science while empire is happy"],
|
||||||
"requires": ["Humanism"],
|
"requires": ["Humanism"],
|
||||||
"row": 2,
|
"row": 2,
|
||||||
"column": 5
|
"column": 5
|
||||||
@ -338,13 +338,15 @@
|
|||||||
{
|
{
|
||||||
"name": "Scientific Revolution",
|
"name": "Scientific Revolution",
|
||||||
"effect": "Science gained from research agreements +50%",
|
"effect": "Science gained from research agreements +50%",
|
||||||
|
"uniques": ["Science gained from research agreements +50%"],
|
||||||
"requires": ["Free Thought"],
|
"requires": ["Free Thought"],
|
||||||
"row": 3,
|
"row": 3,
|
||||||
"column": 1
|
"column": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Rationalism Complete",
|
"name": "Rationalism Complete",
|
||||||
"effect": "+1 gold from all science buildings"
|
"effect": "+1 gold from all science buildings",
|
||||||
|
"unique": ["[+1 Gold] from all [Science] buildings"]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -365,7 +365,7 @@ class CityStats {
|
|||||||
stats.culture += 33f
|
stats.culture += 33f
|
||||||
if (cityInfo.civInfo.hasUnique("+25% gold in capital") && cityInfo.isCapital())
|
if (cityInfo.civInfo.hasUnique("+25% gold in capital") && cityInfo.isCapital())
|
||||||
stats.gold += 25f
|
stats.gold += 25f
|
||||||
if (policies.contains("Sovereignty") && cityInfo.civInfo.getHappiness() >= 0)
|
if (cityInfo.civInfo.getHappiness() >= 0 && cityInfo.civInfo.hasUnique("+15% science while empire is happy"))
|
||||||
stats.science += 15f
|
stats.science += 15f
|
||||||
if (policies.contains("Total War") && currentConstruction is BaseUnit && !currentConstruction.unitType.isCivilian())
|
if (policies.contains("Total War") && currentConstruction is BaseUnit && !currentConstruction.unitType.isCivilian())
|
||||||
stats.production += 15f
|
stats.production += 15f
|
||||||
|
@ -169,9 +169,7 @@ class TechManager {
|
|||||||
private fun scienceFromResearchAgreements(): Int {
|
private fun scienceFromResearchAgreements(): Int {
|
||||||
// https://forums.civfanatics.com/resources/research-agreements-bnw.25568/
|
// https://forums.civfanatics.com/resources/research-agreements-bnw.25568/
|
||||||
var researchAgreementModifier = 0.5f
|
var researchAgreementModifier = 0.5f
|
||||||
if (civInfo.policies.isAdopted("Scientific Revolution"))
|
for(unique in civInfo.getMatchingUniques("Science gained from research agreements +50%"))
|
||||||
researchAgreementModifier += 0.25f
|
|
||||||
if (civInfo.hasUnique("Science gained from research agreements +50%"))
|
|
||||||
researchAgreementModifier += 0.25f
|
researchAgreementModifier += 0.25f
|
||||||
return (scienceFromResearchAgreements / 3 * researchAgreementModifier).toInt()
|
return (scienceFromResearchAgreements / 3 * researchAgreementModifier).toInt()
|
||||||
}
|
}
|
||||||
|
@ -146,8 +146,12 @@ class Building : NamedStats(), IConstruction{
|
|||||||
if (adoptedPolicies.contains("Humanism") && hashSetOf("University", "Observatory", "Public School").contains(baseBuildingName ))
|
if (adoptedPolicies.contains("Humanism") && hashSetOf("University", "Observatory", "Public School").contains(baseBuildingName ))
|
||||||
stats.happiness += 1f
|
stats.happiness += 1f
|
||||||
|
|
||||||
if (adoptedPolicies.contains("Rationalism Complete") && !isWonder && stats.science > 0)
|
if(!isWonder)
|
||||||
stats.gold += 1f
|
for(unique in civInfo.getMatchingUniques("[] from all [] buildings")){
|
||||||
|
val placeholderParams = unique.getPlaceholderParameters()
|
||||||
|
if(isStatRelated(Stat.valueOf(placeholderParams[1])))
|
||||||
|
stats.add(Stats.parse(placeholderParams[0]))
|
||||||
|
}
|
||||||
|
|
||||||
if (adoptedPolicies.contains("Constitution") && isWonder)
|
if (adoptedPolicies.contains("Constitution") && isWonder)
|
||||||
stats.culture += 2f
|
stats.culture += 2f
|
||||||
|
Loading…
x
Reference in New Issue
Block a user