mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-10 15:27:27 +07:00
Resolves #10599 - Cities you haven't bombarded with will auto-bombard at turn end
This commit is contained in:
parent
e872f5ade4
commit
7162011d26
@ -352,7 +352,7 @@ object NextTurnAutomation {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun automateCityBombardment(civInfo: Civilization) {
|
fun automateCityBombardment(civInfo: Civilization) {
|
||||||
for (city in civInfo.cities) UnitAutomation.tryBombardEnemy(city)
|
for (city in civInfo.cities) UnitAutomation.tryBombardEnemy(city)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ class TurnManager(val civInfo: Civilization) {
|
|||||||
|
|
||||||
fun startTurn(progressBar: NextTurnProgress? = null) {
|
fun startTurn(progressBar: NextTurnProgress? = null) {
|
||||||
if (civInfo.isSpectator()) return
|
if (civInfo.isSpectator()) return
|
||||||
|
|
||||||
civInfo.threatManager.clear()
|
civInfo.threatManager.clear()
|
||||||
if (civInfo.isMajorCiv() && civInfo.isAlive()) {
|
if (civInfo.isMajorCiv() && civInfo.isAlive()) {
|
||||||
civInfo.statsHistory.recordRankingStats(civInfo)
|
civInfo.statsHistory.recordRankingStats(civInfo)
|
||||||
@ -225,6 +225,8 @@ class TurnManager(val civInfo: Civilization) {
|
|||||||
|
|
||||||
|
|
||||||
fun endTurn(progressBar: NextTurnProgress? = null) {
|
fun endTurn(progressBar: NextTurnProgress? = null) {
|
||||||
|
NextTurnAutomation.automateCityBombardment(civInfo) // Bombard with all cities that haven't, maybe you missed one
|
||||||
|
|
||||||
val notificationsLog = civInfo.notificationsLog
|
val notificationsLog = civInfo.notificationsLog
|
||||||
val notificationsThisTurn = Civilization.NotificationsLog(civInfo.gameInfo.turns)
|
val notificationsThisTurn = Civilization.NotificationsLog(civInfo.gameInfo.turns)
|
||||||
notificationsThisTurn.notifications.addAll(civInfo.notifications)
|
notificationsThisTurn.notifications.addAll(civInfo.notifications)
|
||||||
|
Loading…
Reference in New Issue
Block a user