refactor: game test data

This commit is contained in:
Ilia Denisov
2025-11-23 12:37:27 +03:00
parent 1bdb40a27d
commit c86ab84ad7
5 changed files with 124 additions and 85 deletions
+3 -1
View File
@@ -69,7 +69,9 @@ func (g Game) joinShipGroupToFleetInternal(ri int, fleetName string, group, coun
}
}
if g.ShipGroups[sgi].Number != count && count > 0 {
if count > 0 &&
g.ShipGroups[sgi].Number != count {
newGroup := g.ShipGroups[sgi]
newGroup.Number -= count
g.ShipGroups[sgi].Number = count