(added introduction)
To avoid confusion:
This patch restores original roles of the main characters:
godfather and
goddaughter will become
uncle and
niece again, as they originally were before Patreon policy changed.
The patch was not originally made by me, I just modified it and added replacement filter for "goddaddy" and a misspelled "goddaughter" to it and optimized the code that was becoming rather clunky after all capitalized and lowercase versions of the filtered words were added to it.
________________________________
(original post)
Added 'goddaddy' to the 'Uncle Restoration' patch to be replaced with 'uncle' (also works for the capitalized version):
Python:
# code inspired by bossapplesauce @ f95zone
init python:
hardcoded = {}
def rel_rest(text):
def text_repl(t):
if renpy.re.match("god(?:daughter|daugther)", t.group(0)): return "niece"
elif renpy.re.match("god(?:father|daddy)", t.group(0)): return "uncle"
elif renpy.re.match("God(?:daughter|daugther)", t.group(0)): return "Niece"
elif renpy.re.match("God(?:father|daddy)", t.group(0)): return "Uncle"
return hardcoded[text] if text in hardcoded else renpy.re.sub( r'(?:(?i)god(?:father|daughter|daugther|daddy))', text_repl, text )
config.say_menu_text_filter = rel_rest
_______________________
update
Added misspelled version of goddaughter ('goddaugther') to the replacement filter
_______________________
rel_rest.rpy file from inside the zip archive goes into the 'game' subfolder in the game root folder:
View attachment 537498
Most of the patches I've made can be extracted directly into the game root folder, but this one follows the suit of the original rel_rest patch.