Workshop fixes

This commit is contained in:
IsseW 2022-02-20 22:08:13 +01:00
parent 4ef1c92858
commit 258b3c7535
2 changed files with 14 additions and 14 deletions

View File

@ -498,7 +498,7 @@ impl Site {
},
// Workshop
5 => {
let size = (2.0 + rng.gen::<f32>().powf(5.0) * 1.5).round() as u32;
let size = (3.0 + rng.gen::<f32>().powf(5.0) * 1.5).round() as u32;
if let Some((aabr, door_tile, door_dir)) = attempt(32, || {
site.find_roadside_aabr(
&mut rng,

View File

@ -111,9 +111,6 @@ impl Structure for Workshop {
);
}
}
for dir in CARDINALS {
for d in 0..3 {
let position = center + dir * (3 + d * 2);
let mut stations = vec![
SpriteKind::CraftingBench,
SpriteKind::Forge,
@ -125,6 +122,9 @@ impl Structure for Workshop {
SpriteKind::Anvil,
SpriteKind::DismantlingBench,
];
for d in 0..3 {
for dir in CARDINALS {
let position = center + dir * (3 + d * 2);
if !stations.is_empty() {
let cr_station = stations.swap_remove(
RandomField::new(0).get(position.with_z(base)) as usize % stations.len(),