gioppoluca / 5e-spellblock-importer

Foundry VTT module to import 5e spells and items from statblock
MIT License
1 stars 0 forks source link

Import Error: some fields are not being parsed correctly #12

Open Cussa opened 1 month ago

Cussa commented 1 month ago

Hello,

I found this amazing module and I really liked it! But there are some issues happening.

This is the example I used for the tests:

My new spell
1st Level Evocation (Ritual)

Casting Time: 1 Action
Range: 60 Feet
Components: V, S, M (a piece of gold 10gp that is consumed)
Duration: Concentration, up to 1 minute
Classes: Ranger, Paladin, Sorcerer, Warlock

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque diam purus, pellentesque ac laoreet interdum, pretium quis elit. Cras vitae sem pulvinar erat semper auctor. Cras nunc nisi, efficitur at mi ut, dignissim malesuada eros. Vivamus vestibulum id tellus vel tempus. Sed maximus nulla enim, in consectetur urna euismod vitae. Nullam maximus nisi vitae nulla venenatis lobortis. Morbi facilisis, nibh ac accumsan convallis, leo orci scelerisque justo, ut cursus orci dui et justo. Duis nec ullamcorper enim.

Donec felis urna, posuere id vehicula at, tristique ac metus. Sed eros tortor, commodo at imperdiet a, varius id orci. Cras vel convallis nibh. Maecenas fermentum blandit massa eu aliquam. Nunc condimentum risus at porta tincidunt. Aliquam tempor laoreet tortor non ullamcorper. Suspendisse potenti.

And this is the result:

image image

List of problems:

  1. Folder to import to is not working (it creates the spell on the rool) - the image is marked as none, but I tested with both a simple folder and a folder insider another folder, and none worked
  2. Ritual is not parsing correct
  3. Components are not importing the Vocal, Somatic and Material correct
  4. It does not check that the value/consumed status for the material (totally understandable if that is considered a "long shot" on the parser)
  5. Description is adding a line break (<br>) after every dot, not respecting the text sent
  6. It seems that importing more than one spell makes the Journal that you create to replace the spells, and not adding them to the list 🤔

Again, many thanks for your time in this amazing module!