Added Babylonian civ unique

This commit is contained in:
Yair Morgenstern
2019-01-04 11:51:44 +02:00
parent 2f5b6e7be5
commit 19906ade75
4 changed files with 10 additions and 0 deletions

View File

@ -141,6 +141,9 @@ class CityInfo {
if (civInfo.policies.isAdopted("Freedom"))
greatPersonPoints = greatPersonPoints.times(1.25f)
if(civInfo.getNation().unique=="Receive free Great Scientist when you discover Writing, Earn Great Scientists 50% faster")
greatPersonPoints.science *= 1.5f
return greatPersonPoints
}

View File

@ -146,6 +146,10 @@ class TechManager {
val currentConstructionUnit = city.cityConstructions.getCurrentConstruction() as BaseUnit
city.cityConstructions.currentConstruction = currentConstructionUnit.upgradesTo!!
}
if(techName=="Writing" && civInfo.getNation().unique=="Receive free Great Scientist when you discover Writing, Earn Great Scientists 50% faster"
&& civInfo.cities.any())
civInfo.addGreatPerson("Great Scientist")
}
fun setTransients(){