PwQt / magic-items-2

This module for Foundry VTT and specific for the DnD5e system, adds the ability to create magical items with spells or feats that belong to the item itself, such as staffs or magic wands, which will be automatically inherited from the character who owns the item.
https://github.com/PwQt/magic-items-2
MIT License
18 stars 7 forks source link

[Feature] DND 3.0 compatibility #50

Closed PwQt closed 7 months ago

PwQt commented 8 months ago

As the name suggests - verify compatibility and if is not, then fix it.

If anyone reads this issue and finds any bug, please make a comment, i'll add it to main comment

Tested functionalities:

Possible compatibility issues:

Currently found issues:

PwQt commented 8 months ago

Spells do not render, because of magicitemsheet.js

  async renderTemplate(name, cls, tab) {
    let template = await renderTemplate(`modules/${CONSTANTS.MODULE_ID}/templates/${name}.html`, this.actor);
    let el = this.html.find(`.${cls}`);
    if (el.length) {
      el.replaceWith(template);
    } else {
      this.html.find(`.${tab} .inventory-list`).append(template);
    }
  }

It seems like the .find method does not find correct element to append template.

PwQt commented 8 months ago

It seems like everything should be ready - i'll test it this weekend to check whether the release is possible, thanks to PR #52 and @voodoofrog

PwQt commented 7 months ago

Released with 1.6.0