From 301035bad17a23c96b34f5c62740f0c88c45fe81 Mon Sep 17 00:00:00 2001 From: Map Date: Mon, 7 Oct 2024 03:57:39 -0500 Subject: [PATCH] Fix some lint errors --- game/options.rpy | 4 ++-- game/src/mod_menu.rpy | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/game/options.rpy b/game/options.rpy index f8d0d28..d8a50d1 100644 --- a/game/options.rpy +++ b/game/options.rpy @@ -156,9 +156,9 @@ default persistent.autoup = False default persistent.show_mod_screenshots = True default persistent.gallery_edgescroll = True -init -1000 python: +init -999 python: if persistent.newmods_default_state == None: - persistent.newmods_default_state = True + persistent.newmods_default_state = False init python: # No idea what this does diff --git a/game/src/mod_menu.rpy b/game/src/mod_menu.rpy index 356c445..404a3d3 100644 --- a/game/src/mod_menu.rpy +++ b/game/src/mod_menu.rpy @@ -196,7 +196,7 @@ init -999 python: mod_jsonfail_list = [] # List of languages that has an associated metadata language file that failed to load. mod_preferred_modname = [] mod_exception = False - mod_in_root_folder = file.count("/", len(mods_dir)) is 0 + mod_in_root_folder = file.count("/", len(mods_dir)) == 0 mod_folder_name = file.split("/")[-2] # mod_name is used only to display debugging information via mod_menu_errorcodes. Contains the mod folder name and whatever translations of # the mod's name that exist. Kind of a cursed implemnetation but with how early error reporting this is before solidifying the mod name @@ -288,7 +288,7 @@ init -999 python: # Since lang keys will only be added to the mod data dict if their respective metadata successfully loaded, no need to check if they can. for lang_key in mod_data_final.keys(): - if lang_key is "None" or lang_key in renpy.known_languages(): + if lang_key == "None" or lang_key in renpy.known_languages(): lang_data = mod_data_final[lang_key] # The JSON object returns an actual python list, but renpy only works with it's own list object and the automation for this fails with JSON. @@ -502,7 +502,7 @@ init -999 python: # Make a copy of the current screenshots list, then put displayable screenshots wherever the values of "Screenshot Displayables" correspond in this list # mod_screenshots will return an empty list if there were no screenshot files to begin with, so this works fine. for lang_key in mod_data_final.keys(): - if lang_key is "None" or lang_key in renpy.known_languages(): + if lang_key == "None" or lang_key in renpy.known_languages(): if mod_data_final[lang_key].get("Screenshots") == None: mod_screenshots = [] else: