mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Space wildlife group spawns apart to prevent spawnplosions
This commit is contained in:
parent
0cc2a77d1d
commit
1708b8b4cc
@ -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).sin(),
|
||||||
(e as f32 / group_size as f32 * 2.0 * f32::consts::PI).cos(),
|
(e as f32 / group_size as f32 * 2.0 * f32::consts::PI).cos(),
|
||||||
0.0,
|
0.0,
|
||||||
);
|
) * (5.0 + dynamic_rng.gen::<f32>().powf(0.5) * 5.0);
|
||||||
supplement.add_entity(entity.with_automatic_name());
|
supplement.add_entity(entity.with_automatic_name());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user