mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Prevent wildlife spawning in towns
This commit is contained in:
@ -666,7 +666,7 @@ pub fn apply_wildlife_supplement<'a, R: Rng>(
|
|||||||
)| {
|
)| {
|
||||||
let density = get_density(chunk, col_sample);
|
let density = get_density(chunk, col_sample);
|
||||||
if density > 0.0
|
if density > 0.0
|
||||||
&& dynamic_rng.gen::<f32>() < density
|
&& dynamic_rng.gen::<f32>() < density * col_sample.spawn_rate
|
||||||
&& underwater == *is_underwater
|
&& underwater == *is_underwater
|
||||||
&& col_sample.gradient < Some(1.3)
|
&& col_sample.gradient < Some(1.3)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user