mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Better dungeon waypoint placement
This commit is contained in:
parent
3e86b20c2c
commit
44fc88b4d1
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user