rnd: ship production numbers

This commit is contained in:
Ilia Denisov
2026-02-05 15:50:40 +02:00
committed by Ilia Denisov
parent fef1be577d
commit 9088cc77c9
4 changed files with 191 additions and 39 deletions
+1 -1
View File
@@ -539,7 +539,7 @@ func (c *Cache) ReportShipProduction(ri int, rep *mr.Report) {
free := c.PlanetProductionCapacity(p.Number)
rep.ShipProduction[pi].Planet = p.Number
rep.ShipProduction[pi].Class = st.Name
rep.ShipProduction[pi].Cost = mr.F(st.EmptyMass())
rep.ShipProduction[pi].Cost = mr.F(ShipProductionCost(st.EmptyMass()))
rep.ShipProduction[pi].Free = mr.F(free)
// FIXME: take logic from [ProduceShip] and test at [controller_test.TestProduceShip]