init 999 python hide: import functools class CompareTrue: def __eq__(self, other): return True __lt__ = __le__ = __gt__ = __ge__ = __eq__ compare_true = CompareTrue() class ScreenFallbackLocals(dict): def __getitem__(self, key): if key.startswith(("avance", "growth", "shrink", "gallery_unlock")) or key.startswith("info") and not key.endswith("requierement"): return compare_true return super(ScreenFallbackLocals, self).__getitem__(key) class PatchedContext(renpy.sl2.slast.SLContext): @property def scope(self): return getattr(self, "_scope_", {}) @scope.setter def scope(self, val): screen_name = renpy.display.screen.current_screen().screen_name[0] if screen_name.startswith("buttonGal") or screen_name in NON_GALL_FALLBACK_SCREENS: self._scope_ = ScreenFallbackLocals(val) var_updates = UPDATE_VARS.get(screen_name, {}) self._scope_.update(var_updates) else: self._scope_ = val renpy.sl2.slast.SLContext = PatchedContext NON_GALL_FALLBACK_SCREENS = {"glow_button", "girlGalSide"} UPDATE_VARS = { "buttonGalPrim": dict.fromkeys(("speech_prim6", "prim_sex_shower"), compare_true), "buttonGalMaxy": dict.fromkeys(("maxy_guitarra_30", "maxy_guitarra_5", "maxy_apariencia2", "maxy_guitarra_6", "maxy_sex_shower", "crossMaxyCharlotte2", "crossMaxyCharlotte3", "maxypetlash_entregado", "conciertosMaxy", "maxypetlash_entregado"), compare_true), "buttonGalChar": dict.fromkeys(("char_recetas5", "char_creatividad2", "char_recetas6", "charlotte_sex_shower"), compare_true), "buttonGalLayla": dict.fromkeys(("ejercitar_layla4", "estudiar_layla3", "ejercitar_layla5"), compare_true), "buttonGalYui": dict.fromkeys(("sutil_yui2", "sutil_yui3", "playa_yui1", "growth_yui_ev1"), compare_true), "buttonGalSasha": dict.fromkeys(("carisma_sasha2", "sutileza_sasha2"), compare_true), "buttonGalMary": dict.fromkeys(("mary_sex_shower",), compare_true), "buttonGalShizuka": dict.fromkeys(("shogukuni_christmas","growth_shizuka_ev1"), compare_true), }