use float64
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user