Refactor the sell unit changes as requested.

It works more simply now, and also doesn't immediately sell the unit.

Also adds a matching UI dialog popup for selling too many ground units.
This commit is contained in:
SimonC6R
2021-01-05 00:26:40 +00:00
parent 64066bfc90
commit ab2046a2c2
7 changed files with 47 additions and 61 deletions

View File

@@ -117,7 +117,6 @@ class GroundPlanner:
print(key)
continue
self.cp.base.sold_units[key] = 0
available = self.cp.base.armor[key]
while available > 0: