mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-21 13:18:56 +07:00
Forced disband from lack of gold now provides disband gold
This commit is contained in:
@ -479,7 +479,7 @@ class CivilizationInfo {
|
|||||||
var civMilitaryUnits = getCivUnits().filter { !it.type.isCivilian() }
|
var civMilitaryUnits = getCivUnits().filter { !it.type.isCivilian() }
|
||||||
if (civMilitaryUnits.any()) {
|
if (civMilitaryUnits.any()) {
|
||||||
val unitToDisband = civMilitaryUnits.first()
|
val unitToDisband = civMilitaryUnits.first()
|
||||||
unitToDisband.destroy()
|
unitToDisband.disband()
|
||||||
civMilitaryUnits -= unitToDisband
|
civMilitaryUnits -= unitToDisband
|
||||||
val unitName = unitToDisband.name
|
val unitName = unitToDisband.name
|
||||||
addNotification("Cannot provide unit upkeep for [$unitName] - unit has been disbanded!", null, Color.RED)
|
addNotification("Cannot provide unit upkeep for [$unitName] - unit has been disbanded!", null, Color.RED)
|
||||||
|
Reference in New Issue
Block a user