Room Creating: Place Kitchen Furniture #11

Merged
msrd0 merged 19 commits from room-creation-placing-furniture into main 2024-07-07 11:54:43 +00:00
Showing only changes of commit bf6af37be1 - Show all commits

View file

@ -101,9 +101,9 @@ impl Room {
const STOVE_HEIGHT: f32 = 0.025; const STOVE_HEIGHT: f32 = 0.025;
const SINK_HEIGHT: f32 = 0.5; const SINK_HEIGHT: f32 = 0.5;
#[allow(clippy::single_match, unreachable_patterns)] // we'll add more stuff later #[allow(clippy::single_match)] // we'll add more stuff later
match room_type { match room_type {
_ => { RoomType::Kitchen => {
// in a kitchen, we always add a fridge // in a kitchen, we always add a fridge
let fridge_pos = u8::gen_range(0, 2) * (width - 1); let fridge_pos = u8::gen_range(0, 2) * (width - 1);
empty_spots.swap_remove(&fridge_pos); empty_spots.swap_remove(&fridge_pos);