From f35739ed3076ca23589ac1af02fb784e284c2514 Mon Sep 17 00:00:00 2001 From: Joshua Barretto Date: Sat, 1 Jun 2019 00:42:09 +0100 Subject: [PATCH] Upped cave spawn rate --- world/src/sim.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/world/src/sim.rs b/world/src/sim.rs index db9b55fcf6..707fc78a84 100644 --- a/world/src/sim.rs +++ b/world/src/sim.rs @@ -201,12 +201,12 @@ impl<'a> Sampler<'a> { ); // Caves - let cave_at = |wposf: Vec2| (sim.gen_ctx.cave_0_nz.get(Vec3::new(wposf.x, wposf.y, alt as f64 * 8.0).div(800.0).into_array()) as f32) + let cave_at = |wposf: Vec2| (sim.gen_ctx.cave_0_nz.get(Vec3::new(wposf.x, wposf.y, alt as f64 * 8.0).div(1000.0).into_array()) as f32) .powf(2.0) .neg() .add(1.0) - .mul((1.15 - chaos).min(1.0)); - let cave_xy = cave_at(wposf).min(cave_at(-wposf)); + .mul((1.2 - chaos).min(1.0)); + let cave_xy = cave_at(wposf).max(cave_at(-wposf)); let cave_alt = alt - 32.0 + (sim.gen_ctx.cave_1_nz.get(Vec2::new(wposf.x, wposf.y).div(48.0).into_array()) as f32) * 8.0 + (sim.gen_ctx.cave_1_nz.get(Vec2::new(wposf.x, wposf.y).div(300.0).into_array()) as f32).add(1.0).mul(0.5).powf(8.0).mul(256.0);