refactor: planet industry production

This commit is contained in:
Ilia Denisov
2026-02-08 20:12:27 +02:00
parent b928bb2976
commit f8412be248
4 changed files with 14 additions and 37 deletions
+2 -2
View File
@@ -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)
}