mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-16 18:59:15 +07:00
Resource bonus from Fascism effective immediately
This commit is contained in:
@ -123,13 +123,17 @@ class PolicyManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
val hasCapital = civInfo.cities.any { it.isCapital() }
|
val hasCapital = civInfo.cities.any { it.isCapital() }
|
||||||
when (policy.name) {
|
when (policy.effect) {
|
||||||
"Collective Rule" -> if (hasCapital && !civInfo.isOneCityChallenger())
|
"Training of settlers increased +50% in capital, receive a new settler near the capital" ->
|
||||||
civInfo.placeUnitNearTile(civInfo.getCapital().location, Constants.settler)
|
if (hasCapital && !civInfo.isOneCityChallenger())
|
||||||
"Citizenship" -> if (hasCapital) civInfo.placeUnitNearTile(civInfo.getCapital().location, Constants.worker)
|
civInfo.placeUnitNearTile(civInfo.getCapital().location, Constants.settler)
|
||||||
"Representation", "Reformation" -> civInfo.goldenAges.enterGoldenAge()
|
"Tile improvement speed +25%, receive a free worker near the capital" ->
|
||||||
"Free Religion" -> freePolicies++
|
if (hasCapital) civInfo.placeUnitNearTile(civInfo.getCapital().location, Constants.worker)
|
||||||
"Liberty Complete" -> {
|
"+1 culture for each monument, temple and monastery. Gain a free policy." -> freePolicies++
|
||||||
|
"Each city founded increases culture cost of policies 33% less than normal. Starts a golden age.",
|
||||||
|
"+33% culture in all cities with a world wonder, immediately enter a golden age" ->
|
||||||
|
civInfo.goldenAges.enterGoldenAge()
|
||||||
|
"Free Great Person of choice near capital" -> {
|
||||||
if (civInfo.isPlayerCivilization()) civInfo.greatPeople.freeGreatPeople++
|
if (civInfo.isPlayerCivilization()) civInfo.greatPeople.freeGreatPeople++
|
||||||
else {
|
else {
|
||||||
val preferredVictoryType = civInfo.victoryType()
|
val preferredVictoryType = civInfo.victoryType()
|
||||||
@ -142,7 +146,8 @@ class PolicyManager {
|
|||||||
civInfo.addGreatPerson(greatPerson)
|
civInfo.addGreatPerson(greatPerson)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
"Autocracy Complete" -> autocracyCompletedTurns = 30
|
"Quantity of strategic resources produced by the empire increased by 100%" -> civInfo.updateDetailedCivResources()
|
||||||
|
"+20% attack bonus to all Military Units for 30 turns" -> autocracyCompletedTurns = 30
|
||||||
}
|
}
|
||||||
tryAddLegalismBuildings()
|
tryAddLegalismBuildings()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user