Space wildlife group spawns apart to prevent spawnplosions

This commit is contained in:
Ludvig Böklin 2021-04-22 08:50:20 +00:00 committed by Ben Wallis
parent 0cc2a77d1d
commit 1708b8b4cc

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());
}
}