def _room_living(w, h, wall_material, floor_material): M = room_default(w, h, wall_type=wall_material, floor_type=floor_material) M[w - 2, h - 2].put(T.furniture_bed_double()) M[1, h - 2].put(T.furniture_bed_single()) M[1, h - 3].put(T.furniture_bed_single()) num_of_items = (w - 2) * (h - 2) // 3 items = [ T.furniture_chest_profile(), T.furniture_torch(), T.furniture_cabinet(), T.furniture_basket() ] M.scatter(1, 1, w - 1, h - 1, random.sample(items, min(len(items), num_of_items)), exclude=[(w - 3, 1), (w - 4, 1)]) M[w - 3, 0] = C.door_open_empty() return M