def _room_library(w, h, wall_material, floor_material): M = room_default(w, h, wall_type=wall_material, floor_type=floor_material) for x in range(1, w // 2 - 1): M[x, 1].put(T.furniture_bookcase()) for x in range(w // 2 + 1 + w % 2, w - 1): M[x, 1].put(T.furniture_bookcase()) for x in (1, w - 2): M[x, 2].put(T.furniture_bookcase()) M[x, h - 2] = C.column_antique() for x in (0, w - 1): M[x, 2] = C.door_open_stairs() M[x, h - 3] = C.door_closed() for x in range(w // 2 - 1, w // 2 + 1 + w % 2): M[x, 1].put(T.furniture_hearth()) M[x, 3].put(T.furniture_sofa()) M[x, h - 3].put(T.furniture_chair()) M[x, h - 1] = C.door_open_empty() items = [T.book(), T.book()] M.scatter(2, 2, w - 2, 3, items) for x in range(3, w - 3): M[x, h - 4].put(T.furniture_longtable()) for x in (2, w - 3): M[x, h - 4].put(T.furniture_chair()) for x in (3, w - 4): M[x, h - 5].put(T.furniture_chandelier()) return M
def _room_rich_hall(w, h): """ Construct luxury hall. """ M = room_default(w, h, wall_type=C.wall_dungeon_smooth, floor_type=C.floor_plank) # Place sofa, flowers, etc. M[1, 1] = C.flora_flower() M[w // 2, 1] = C.column_antique() M[w - 2, 1] = C.flora_flower() M[1, 2].put(T.furniture_sofa()) M[w - 2, 2].put(T.furniture_sofa()) M[w // 2 - 1, h - 2].put(T.furniture_chandelier()) M[w // 2 + 1, h - 2].put(T.furniture_chandelier()) M[2, 0] = C.door_closed() M[7, 0] = C.door_closed() M[w // 2, h - 1] = C.door_closed_wooden() return M