Spawn rover parts a little more frequently

This commit is contained in:
Marc Di Luzio 2020-08-01 11:26:10 +01:00
parent 018c122861
commit 636f0ed773

View file

@ -61,7 +61,7 @@ func (g *NoiseWorldGen) GetObject(v maths.Vector) (obj Object) {
// Otherwise, try some rover parts // Otherwise, try some rover parts
p := g.noise.Eval2(float64(v.X)/partsNoiseScale, float64(v.Y)/partsNoiseScale) p := g.noise.Eval2(float64(v.X)/partsNoiseScale, float64(v.Y)/partsNoiseScale)
switch { switch {
case p > 0.8: case p > 0.7:
obj.Type = roveapi.Object_RoverParts obj.Type = roveapi.Object_RoverParts
} }
} }