wip: generate rest of report
This commit is contained in:
@@ -173,6 +173,7 @@ func (c *Cache) ShipClass(ri int, name string) (*game.ShipType, int, bool) {
|
||||
}
|
||||
|
||||
func (c *Cache) ShipType(ri int, ID uuid.UUID) (*game.ShipType, bool) {
|
||||
// TODO: cache + invalidate
|
||||
c.validateRaceIndex(ri)
|
||||
for i := range c.g.Race[ri].ShipTypes {
|
||||
if c.g.Race[ri].ShipTypes[i].ID == ID {
|
||||
|
||||
Reference in New Issue
Block a user