ui calculator

This commit is contained in:
Ilia Denisov
2026-03-30 19:38:24 +02:00
committed by GitHub
parent 17f366cd6b
commit a7793f5416
37 changed files with 2046 additions and 270 deletions
+13
View File
@@ -0,0 +1,13 @@
package calc
func ShipProductionCost(shipEmptyMass float64) float64 {
return shipEmptyMass * 10.
}
func PlanetProduceShipMass(L, Mat, Res float64) float64 {
result := L / 10
if result <= Mat {
return result
}
return (L + Mat/Res) / (10 + 1/Res)
}