mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-30 07:21:34 -04:00
Resolved #4209 - AI city-founding no longer plays music
This commit is contained in:
parent
3d1836a081
commit
990074e9b0
@ -157,7 +157,6 @@ object UnitActions {
|
|||||||
return UnitAction(UnitActionType.FoundCity, uncivSound = UncivSound.Silent, action = null)
|
return UnitAction(UnitActionType.FoundCity, uncivSound = UncivSound.Silent, action = null)
|
||||||
|
|
||||||
val foundAction = {
|
val foundAction = {
|
||||||
Sounds.play(UncivSound.Chimes)
|
|
||||||
UncivGame.Current.settings.addCompletedTutorialTask("Found city")
|
UncivGame.Current.settings.addCompletedTutorialTask("Found city")
|
||||||
unit.civInfo.addCity(tile.position)
|
unit.civInfo.addCity(tile.position)
|
||||||
if (tile.ruleset.tileImprovements.containsKey("City center"))
|
if (tile.ruleset.tileImprovements.containsKey("City center"))
|
||||||
@ -171,7 +170,7 @@ object UnitActions {
|
|||||||
|
|
||||||
return UnitAction(
|
return UnitAction(
|
||||||
type = UnitActionType.FoundCity,
|
type = UnitActionType.FoundCity,
|
||||||
uncivSound = UncivSound.Silent,
|
uncivSound = UncivSound.Chimes,
|
||||||
action = {
|
action = {
|
||||||
// check if we would be breaking a promise
|
// check if we would be breaking a promise
|
||||||
val leaders = TestPromiseNotToSettle(unit.civInfo, tile)
|
val leaders = TestPromiseNotToSettle(unit.civInfo, tile)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user