wip: generate rest of report

This commit is contained in:
Ilia Denisov
2026-02-04 13:57:25 +02:00
parent adbe605783
commit abc98ee72f
10 changed files with 521 additions and 155 deletions
+4 -1
View File
@@ -39,8 +39,11 @@ func (c *Cache) moveShipGroup(i int, delta float64) {
}
destPlanet := c.MustPlanet(sg.Destination)
arrived := false
sg.StateInSpace.X, sg.StateInSpace.Y, arrived =
var x, y float64
x, y, arrived =
util.NextTravelCoord(c.g.Map.Width, c.g.Map.Height, originX, originY, destPlanet.X.F(), destPlanet.Y.F(), delta)
sg.StateInSpace.X = game.F(x)
sg.StateInSpace.Y = game.F(y)
if arrived {
sg.StateInSpace = nil
}