refactor: floats, tests
This commit is contained in:
@@ -46,10 +46,10 @@ func (c *Cache) CreateScience(ri int, name string, drive, weapons, shileds, carg
|
||||
c.g.Race[ri].Sciences = append(c.g.Race[ri].Sciences, game.Science{
|
||||
ID: uuid.New(),
|
||||
Name: n,
|
||||
Drive: drive,
|
||||
Weapons: weapons,
|
||||
Shields: shileds,
|
||||
Cargo: cargo,
|
||||
Drive: game.Float(drive),
|
||||
Weapons: game.Float(weapons),
|
||||
Shields: game.Float(shileds),
|
||||
Cargo: game.Float(cargo),
|
||||
})
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user