<commit_before>init python:
    def get_place_bg(type):
        # config.basedir - директория где у нас лежит сама игра.
        # "game" - директория относительно config.basedir где лежат собственно файлы игры и 
        # относительно которой высчитываются все пути
        relative_path = "img/bg/"+type # Относительный путь для движка ренпи
        absolute_path = os.path.join(config.basedir, "game", relative_path) # Cоставляем абсолютный путь где искать
        filename = random.choice(os.listdir(absolute_path)) # получаем название файла
        return relative_path + "/" + filename # Возвращаем правильно отформатированно значение
    
init:
    image bg main = "img/bg/main.jpg"  # заставка главного меню
    image place = ConditionSwitch(              
        "place == 'city_gates'", "img/bg/city/outside.png",    # определение фонов для разных мест (потребует доработки)  
        "place == 'impassable_coomb'", "img/bg/lair/ravine.png",
        "place == 'impregnable_peak'", "img/bg/lair/cave.png",
        "place == 'solitude_сitadel'", "img/bg/lair/cave.png",
        "place == 'vulcano_chasm'", "img/bg/lair/cave.png",
        "place == 'underwater_grot'", "img/bg/lair/cave.png",
        "place == 'underground_burrow'", "img/bg/lair/cave.png",
        "place == 'dragon_castle'", "img/bg/lair/cave.png",
        "place == 'castle'", "img/bg/lair/cave.png",
        "place == 'ogre_den'", "img/bg/lair/cave.png",
        "place == 'broad_cave'", "img/bg/lair/cave.png",
        "place == 'tower_ruin'", "img/bg/lair/cave.png",
        "place == 'monastery_ruin'", "img/bg/lair/cave.png",
        "place == 'fortress_ruin'", "img/bg/lair/cave.png",
        "place == 'castle_ruin'", "img/bg/lair/cave.png",
        "place == 'ice_citadel'", "img/bg/lair/cave.png",
        "place == 'vulcanic_forge'", "img/bg/lair/cave.png",
        "place == 'cloud_castle'", "img/bg/lair/cave.png",
        "place == 'undefwater_mansion'", "img/bg/lair/cave.png",
        "place == 'underground_palaces'", "img/bg/lair/cave.png",
        "place == 'forest'", "img/bg/forest/1.png",
        "place == 'mountain'", "img/bg/mountain/1.png",
        "place == 'plain'", "img/bg/plain/3.png",
        "place == 'road'", "img/bg/road/1.png",
        "place == 'sea'", "img/bg/sea/1.png",
        "place == 'sky'", "img/bg/sky/1.png",
        "place == 'gremlins'", "img/bg/special/gremlins.png",
        "place == 'smuglers'", "img/bg/special/smuglers.png",
        "place == 'mordor'", "img/bg/special/mordor.png",
        "place == 'prison'", "img/scene/prison.png",
        )<commit_msg>Исправление пути файла<commit_after>init python:
    def get_place_bg(type):
        # config.basedir - директория где у нас лежит сама игра.
        # "game" - директория относительно config.basedir где лежат собственно файлы игры и 
        # относительно которой высчитываются все пути
        relative_path = "img/bg/"+type # Относительный путь для движка ренпи
        absolute_path = os.path.join(config.basedir, "game", relative_path) # Cоставляем абсолютный путь где искать
        filename = random.choice(os.listdir(absolute_path)) # получаем название файла
        return relative_path + "/" + filename # Возвращаем правильно отформатированно значение
    
init:
    image bg main = "img/bg/main.jpg"  # заставка главного меню
    image place = ConditionSwitch(              
        "place == 'city_gates'", "img/bg/city/outside.png",    # определение фонов для разных мест (потребует доработки)  
        "place == 'impassable_coomb'", "img/bg/lair/ravine.png",
        "place == 'impregnable_peak'", "img/bg/lair/cave.png",
        "place == 'solitude_сitadel'", "img/bg/lair/cave.png",
        "place == 'vulcano_chasm'", "img/bg/lair/cave.png",
        "place == 'underwater_grot'", "img/bg/lair/cave.png",
        "place == 'underground_burrow'", "img/bg/lair/cave.png",
        "place == 'dragon_castle'", "img/bg/lair/cave.png",
        "place == 'castle'", "img/bg/lair/cave.png",
        "place == 'ogre_den'", "img/bg/lair/cave.png",
        "place == 'broad_cave'", "img/bg/lair/cave.png",
        "place == 'tower_ruin'", "img/bg/lair/cave.png",
        "place == 'monastery_ruin'", "img/bg/lair/cave.png",
        "place == 'fortress_ruin'", "img/bg/lair/cave.png",
        "place == 'castle_ruin'", "img/bg/lair/cave.png",
        "place == 'ice_citadel'", "img/bg/lair/cave.png",
        "place == 'vulcanic_forge'", "img/bg/lair/cave.png",
        "place == 'cloud_castle'", "img/bg/lair/cave.png",
        "place == 'undefwater_mansion'", "img/bg/lair/cave.png",
        "place == 'underground_palaces'", "img/bg/lair/cave.png",
        "place == 'forest'", "img/bg/forest/1.png",
        "place == 'mountain'", "img/bg/mountain/1.png",
        "place == 'plain'", "img/bg/plain/3.png",
        "place == 'road'", "img/bg/road/1.png",
        "place == 'sea'", "img/bg/sea/1.png",
        "place == 'sky'", "img/bg/sky/1.png",
        "place == 'gremlins'", "img/bg/special/gremlins.png",
        "place == 'smuglers'", "img/bg/special/smugglers.png",
        "place == 'mordor'", "img/bg/special/mordor.png",
        "place == 'prison'", "img/scene/prison.png",
        )
{'fraction_non_alphanumeric': 0.1856702619414484, 'fraction_numerical': 0.0023112480739599386, 'mean_word_length': 2.7603186097031136, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6044061', 'n_tokens_mistral': 1974, 'n_tokens_neox': 2094, 'n_words': 328}