feat: turn stage increment after player's command
This commit is contained in:
@@ -28,6 +28,10 @@ func NewCache(g *game.Game) *Cache {
|
||||
return c
|
||||
}
|
||||
|
||||
func (c Cache) Stage() uint {
|
||||
return c.g.Stage
|
||||
}
|
||||
|
||||
func (c *Cache) ShipGroupShipClass(groupIndex int) *game.ShipType {
|
||||
if len(c.cacheShipClassByShipGroupIndex) == 0 {
|
||||
c.cacheShipsAndGroups()
|
||||
|
||||
Reference in New Issue
Block a user