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_small_office(w, h): """ Construct small office for employees in poor part. """ M = room_default(w, h, wall_type=C.wall_dungeon_smooth, floor_type=C.floor_plank) # Place things and actor - employee. work_chance = random.choice([True, False]) M[w // 2, 0] = C.door_open_empty() M[1, h - 1] = C.wall_bars() M[w - 2, h - 1] = C.wall_bars() M[2, h - 1].put(T.furniture_longtable()) if w > 5: for x in range(2, w - 2): M[x, h - 1].put(T.furniture_longtable()) M[w // 2, h - 2].put(T.furniture_chair()) M[w - 2, 1].put(T.furniture_bookcase()) M[1, 1].put(T.money_pile()) if work_chance: M[1, h - 2].put(A.player_female()) M[w - 2, h - 2].put(T.book()) else: M[w - 2, h - 2].put(T.book_clear()) return M
def _room_private(w, h, orientation='left'): """ Construct private room. """ M = room_default(w, h, wall_type=C.wall_dungeon_smooth, floor_type=C.floor_plank) # Place some things. M[1, 1].put(T.book()) M[1, h // 2].put(T.furniture_longtable()) for x in range(1, w - 2): M[x, h // 2 + 1].put(T.furniture_chair()) M[w // 2 - 1, h // 2 - 1].put(T.furniture_chair()) if w > 5: for x in range(2, w - 3): M[x, h // 2].put(T.furniture_longtable()) M[w - 3, h // 2].put(T.furniture_longtable()) M[w - 2, 0] = C.door_closed() M[w - 2, h // 2].put(T.furniture_chandelier()) if orientation == 'right': M.hmirror() return M