From 44fc88b4d10e2155ee3b8913d062a8088f44f7cb Mon Sep 17 00:00:00 2001 From: Joshua Barretto Date: Tue, 28 Apr 2020 19:36:14 +0100 Subject: [PATCH] Better dungeon waypoint placement --- world/src/site/dungeon/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/world/src/site/dungeon/mod.rs b/world/src/site/dungeon/mod.rs index 11d5218e78..9a19332ff4 100644 --- a/world/src/site/dungeon/mod.rs +++ b/world/src/site/dungeon/mod.rs @@ -160,10 +160,10 @@ impl Dungeon { let offs = Vec2::new(rng.gen_range(-1.0, 1.0), rng.gen_range(-1.0, 1.0)) .try_normalized() .unwrap_or(Vec2::unit_y()) - * 16.0; + * 12.0; supplement.add_entity( EntityInfo::at( - Vec3::new(self.origin.x, self.origin.y, self.alt + 4).map(|e| e as f32) + Vec3::new(self.origin.x, self.origin.y, self.alt + 16).map(|e| e as f32) + Vec3::from(offs), ) .into_waypoint(),