mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Added reseeding for sites
This commit is contained in:
parent
3421b3d8da
commit
1feae79243
@ -156,8 +156,8 @@ impl FigureMgr {
|
||||
// TODO: Investigate passing the velocity into the shader so we can at least
|
||||
// interpolate motion
|
||||
const MIN_PERFECT_RATE_DIST: f32 = 50.0;
|
||||
if (i as u64 + tick) % (1
|
||||
+ ((pos.0.distance_squared(camera.get_focus_pos()).powf(0.25)
|
||||
if (i as u64 + tick)
|
||||
% (1 + ((pos.0.distance_squared(camera.get_focus_pos()).powf(0.25)
|
||||
- MIN_PERFECT_RATE_DIST.powf(0.5))
|
||||
.max(0.0)
|
||||
/ 3.0) as u64)
|
||||
|
@ -142,10 +142,10 @@ impl Civs {
|
||||
|
||||
let world_site = match &site.kind {
|
||||
SiteKind::Settlement => {
|
||||
WorldSite::from(Settlement::generate(wpos, Some(ctx.sim), &mut ctx.rng))
|
||||
WorldSite::from(Settlement::generate(wpos, Some(ctx.sim), &mut ctx.reseed().rng))
|
||||
},
|
||||
SiteKind::Dungeon => {
|
||||
WorldSite::from(Dungeon::generate(wpos, Some(ctx.sim), &mut ctx.rng))
|
||||
WorldSite::from(Dungeon::generate(wpos, Some(ctx.sim), &mut ctx.reseed().rng))
|
||||
},
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user