feat: command types list

This commit is contained in:
Ilia Denisov
2026-02-10 07:49:12 +02:00
parent d9c8de27e5
commit 83bcdcbc49
15 changed files with 184 additions and 163 deletions
+2 -2
View File
@@ -6,7 +6,7 @@ import (
"github.com/iliadenisov/galaxy/internal/util"
)
func (c *Cache) SendGroup(ri int, groupIndex, planetNumber, quantity uint) error {
func (c *Cache) shipGroupSend(ri int, groupIndex, planetNumber, quantity uint) error {
c.validateRaceIndex(ri)
sgi, ok := c.raceShipGroupIndex(ri, groupIndex)
@@ -51,7 +51,7 @@ func (c *Cache) SendGroup(ri int, groupIndex, planetNumber, quantity uint) error
if p1.Number == p2.Number {
c.UnsendShips(c.ShipGroup(sgi))
c.JoinEqualGroups(ri)
c.shipGroupMerge(ri)
return nil
}