Merge branch 'lboklin/wildlife-group-spawn-dist' into 'master'

Space wildlife group spawns apart to prevent spawnplosions

See merge request veloren/veloren!2178
This commit is contained in:
Ben Wallis 2021-04-22 08:50:20 +00:00
commit 89e043bbca

View File

@ -985,7 +985,7 @@ pub fn apply_wildlife_supplement<'a, R: Rng>(
(e as f32 / group_size as f32 * 2.0 * f32::consts::PI).sin(),
(e as f32 / group_size as f32 * 2.0 * f32::consts::PI).cos(),
0.0,
);
) * (5.0 + dynamic_rng.gen::<f32>().powf(0.5) * 5.0);
supplement.add_entity(entity.with_automatic_name());
}
}