fix: created ships exact tech level

This commit is contained in:
Ilia Denisov
2026-02-17 19:06:26 +02:00
parent 16e281cfd6
commit 1379241967
6 changed files with 38 additions and 19 deletions
+3
View File
@@ -187,6 +187,9 @@ func (sg ShipGroup) CargoCapacity(st *ShipType) float64 {
// Масса перевозимого груза -
// общее количество единиц груза, деленное на технологический уровень Грузоперевозок
func (sg ShipGroup) CarryingMass() float64 {
if sg.Load.F() == 0 {
return 0
}
return sg.Load.F() / sg.TechLevel(TechCargo).F()
}