feat: finish game; store reports

This commit is contained in:
Ilia Denisov
2026-02-04 14:21:37 +02:00
parent abc98ee72f
commit 9a6d4112cf
6 changed files with 43 additions and 10 deletions
-1
View File
@@ -248,7 +248,6 @@ func (c *Cache) ReportLocalShipClass(ri int, report *mr.Report) {
slices.SortFunc(report.LocalShipClass, func(a, b mr.ShipClass) int { return cmp.Compare(a.Name, b.Name) })
}
// FIXME: add ships bombed/wiped planets without battles
func (c *Cache) ReportOtherShipClass(ri int, rep *mr.Report) {
c.validateRaceIndex(ri)
r := &c.g.Race[ri]