use float64

This commit is contained in:
Ilia Denisov
2025-09-23 22:27:09 +03:00
parent 1a1bd0af17
commit 7d93176031
9 changed files with 60 additions and 60 deletions
+7 -7
View File
@@ -5,7 +5,7 @@ import (
"math"
)
const defaultFactor float32 = 0.1
const defaultFactor float64 = 0.1
type MapSetting struct {
Players uint32
@@ -20,7 +20,7 @@ type MapSetting struct {
GiantPlanets PlanetSetting
BigPlanets PlanetSetting
OthersMinDistance float32
OthersMinDistance float64
NormalPlanets PlanetSetting
RichPlanets PlanetSetting
Asterioids PlanetSetting
@@ -44,11 +44,11 @@ func (ms MapSetting) NobodysPlanets() uint32 {
type PlanetSetting struct {
MinDistanceHW uint32
MinSize float32
MaxSize float32
MinResource float32
MaxResource float32
Probability float32
MinSize float64
MaxSize float64
MinResource float64
MaxResource float64
Probability float64
}
func (ps PlanetSetting) Count(freePlanets uint32) int {