pwatson100 / symbaroum

GNU General Public License v3.0
13 stars 18 forks source link

Override for item creation dialog shows "Artifact" again #680

Open bithir opened 1 month ago

bithir commented 1 month ago

Need to remove this entry from the menu.

bithir commented 1 month ago

Method signature change - breaking change in v13.

Corrected code below

static async createDialog(data = {},createOptions={}, {folders, types, template, ...dialogOptions}={}) {
    // Collect data
    console.log("createDialog", types);
    types = game.symbaroum.config.itemValid;
    return super.createDialog(data, createOptions , { folders, types, template, dialogOptions });
  }