mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Better town spawn rates
This commit is contained in:
parent
4dbb6a631f
commit
ca26efea47
@ -764,7 +764,7 @@ impl Settlement {
|
|||||||
let entity_wpos = Vec3::new(wpos2d.x as f32, wpos2d.y as f32, col_sample.alt + 3.0);
|
let entity_wpos = Vec3::new(wpos2d.x as f32, wpos2d.y as f32, col_sample.alt + 3.0);
|
||||||
|
|
||||||
if matches!(sample.plot, Some(Plot::Town)) &&
|
if matches!(sample.plot, Some(Plot::Town)) &&
|
||||||
RandomField::new(self.seed).chance(Vec3::from(wpos2d), 1.0 / (32.0 * 32.0))
|
RandomField::new(self.seed).chance(Vec3::from(wpos2d), 1.0 / (50.0 * 50.0))
|
||||||
{
|
{
|
||||||
let entity = EntityInfo::at(entity_wpos)
|
let entity = EntityInfo::at(entity_wpos)
|
||||||
.with_alignment(comp::Alignment::Npc)
|
.with_alignment(comp::Alignment::Npc)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user