Mezryss / FVTT-Genesys

Foundry VTT: Unoffocial implementation of the Genesys RPG
MIT License
26 stars 9 forks source link

Fixes the skill check text editor enricher #58

Closed Assembling-Kings closed 1 year ago

Assembling-Kings commented 1 year ago

While I was creating some talents I noticed a few errors on the skill check enricher. Here's what I typed: image

And this was the result: image

Difficulty 5 was incorrectly being labeled as "Impossible" instead of "Formidable". I made changes to fix this and also to cap the amount of dice at 5 for "Impossible".

Additionally, if two skill checks were used on the same sentence the regex kept matching everything between both of them. I changed it to be less greedy.

Here's how it looks now with the changes: image