doki-doki-ai-edition / Mod

A DDLC Mod with AI interactions
43 stars 9 forks source link

Hotfix/typo and brackets #14

Closed jeppevinkel closed 4 months ago

jeppevinkel commented 4 months ago

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.

zeeblo commented 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?

jeppevinkel commented 4 months ago

You are correct. I think I got confused. I'll fix it.