From ea6f09ec881c186fb18831159ccf273413aa113e Mon Sep 17 00:00:00 2001 From: floppy Date: Tue, 25 Jan 2022 10:27:25 +0100 Subject: [PATCH] change SeaCrocodile spawn --- assets/world/wildlife/spawn/tropical/ocean.ron | 2 +- world/src/layer/wildlife.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/world/wildlife/spawn/tropical/ocean.ron b/assets/world/wildlife/spawn/tropical/ocean.ron index 5e5596affa..f9bbf49434 100644 --- a/assets/world/wildlife/spawn/tropical/ocean.ron +++ b/assets/world/wildlife/spawn/tropical/ocean.ron @@ -4,7 +4,7 @@ SpawnEntry ( rules: [ Pack( groups: [ - (1, (3, 4, "common.entity.wild.aggressive.sea_crocodile")), + (1, (1, 3, "common.entity.wild.aggressive.sea_crocodile")), ], is_underwater: true, day_period: [Night, Morning, Noon, Evening], diff --git a/world/src/layer/wildlife.rs b/world/src/layer/wildlife.rs index 11a4e38c9d..b5583b528c 100644 --- a/world/src/layer/wildlife.rs +++ b/world/src/layer/wildlife.rs @@ -264,8 +264,8 @@ pub fn spawn_manifest() -> Vec<(&'static str, DensityFn)> { }), // Ocean animals ("world.wildlife.spawn.tropical.ocean", |_c, col| { - close(col.temp, CONFIG.tropical_temp, 0.1) - * if col.water_dist.map(|d| d < 1.0).unwrap_or(false) && col.tree_density < 0.1 { + close(col.temp, CONFIG.tropical_temp, 0.1) / 10.0 + * if col.water_dist.map(|d| d < 1.0).unwrap_or(false) && col.tree_density == 0.0 { 0.001 } else { 0.0