refactor: floats, tests
This commit is contained in:
@@ -33,11 +33,11 @@ func (c *Cache) CreateShipType(ri int, typeName string, drive float64, ammo int,
|
||||
c.g.Race[ri].ShipTypes = append(c.g.Race[ri].ShipTypes, game.ShipType{
|
||||
ID: uuid.New(),
|
||||
Name: n,
|
||||
Drive: drive,
|
||||
Drive: game.Float(drive),
|
||||
Armament: uint(ammo),
|
||||
Weapons: weapons,
|
||||
Shields: shileds,
|
||||
Cargo: cargo,
|
||||
Weapons: game.Float(weapons),
|
||||
Shields: game.Float(shileds),
|
||||
Cargo: game.Float(cargo),
|
||||
})
|
||||
c.invalidateShipGroupCache()
|
||||
c.invalidateFleetCache()
|
||||
|
||||
Reference in New Issue
Block a user