Closed jeppevinkel closed 4 months ago
Looks good, although I have a question about line 199, I might just be missing something but doesn't
reply = re.sub(r'\[.*?\]', '', reply)
only need to be called once in the if statement under the [CONTENT] section?
You are correct. I think I got confused. I'll fix it.
The main part of this fix is in case the AI messes up and adds things in square brackets it should. This issue is most apparent in purgatory, but this strips them out of the text in purgatory and normal realms. Preventing renpy crashes.
The second commit is just a small typo I noticed.