- Jun 10, 2017
- 10,376
- 15,289
Can you please write patches that do NOT break Ren'Py's behavior ?UPDATED: Added patch for v.2.1 extra (start Chapter 2)
You aren't alone in the world, and it's not like Mr.Dots is a totally unknown author that you'll be the only one to mod/patch. I wonder to which extend the walkthrough mod do not duplicate the original code just because you messed with the
config.label_overrides
dict.Your "LabelOverridesSwitch" should have inherited from the expected
dict
class, instead of trying to mimic it as seen from far away.
Code:
class LabelOverridesSwitch(__builtins__["dict"]):
def __init__(self, passthru):
super( LabelOverridesSwitch, self ).__init__( passthru )
self.ipatch = set()
def get(self, key, default=None):
return key + "_i" if persistent.v_ipatch_enabled and key in self.ipatch else super( LabelOverridesSwitch, self ).get( key, default )