cmd: unload cargo

This commit is contained in:
Ilia Denisov
2025-12-11 23:00:31 +03:00
parent 4447d125ac
commit d0d5bc3c88
7 changed files with 322 additions and 39 deletions
+1
View File
@@ -90,6 +90,7 @@ func (g *Game) joinShipGroupToFleetInternal(ri int, fleetName string, group, cou
}
}
// FIXME: if g.ShipGroups[sgi].FleetID != nil { // delete old fleet if empty, ALSO mind breaking group }
if count > 0 && g.ShipGroups[sgi].Number != count {
newGroup := g.ShipGroups[sgi]
newGroup.Number -= count