refactor: planet industry production
This commit is contained in:
@@ -64,8 +64,8 @@ func (c *Cache) DeleteScience(ri int, name string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func ResearchTech(r *game.Race, indCapacity float64, drive, weapons, shields, cargo float64) {
|
||||
increment := indCapacity / 5000.
|
||||
func ResearchTech(r *game.Race, freeProduction float64, drive, weapons, shields, cargo float64) {
|
||||
increment := freeProduction / 5000.
|
||||
if drive > 0 {
|
||||
r.Tech = r.Tech.Set(game.TechDrive, r.Tech.Value(game.TechDrive)+increment*drive)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user