diff --git a/module.json b/module.json index 19130d2..fcdef3e 100644 --- a/module.json +++ b/module.json @@ -2,13 +2,13 @@ "id": "magic-items-2", "title": "Magic Items 2", "description": "Module that 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.", - "version": "1.0.0", + "version": "1.1.0", "library": "false", "manifestPlusVersion": "1.2.0", "compatibility": { - "minimum": 10, - "verified": 10.999, - "maximum": 10 + "minimum": "10", + "verified": "11.300", + "maximum": "" }, "authors": [ { diff --git a/scripts/magicitem.js b/scripts/magicitem.js index 86becac..a4c9080 100644 --- a/scripts/magicitem.js +++ b/scripts/magicitem.js @@ -584,7 +584,7 @@ export class OwnedMagicItem extends MagicItem { * Tests if the owned magic items can visualize his powers. */ get visible() { - let identifiedOnly = game.settings.get("magicitems", "identifiedOnly"); + let identifiedOnly = game.settings.get("magic-items-2", "identifiedOnly"); return !identifiedOnly || this.item.system.identified; } diff --git a/scripts/magicitems.js b/scripts/magicitems.js index 4b29cde..767600a 100644 --- a/scripts/magicitems.js +++ b/scripts/magicitems.js @@ -10,7 +10,7 @@ Handlebars.registerHelper('enabled', function(value, options) { Hooks.once('init', () => { - game.settings.register("magicitems", "identifiedOnly", { + game.settings.register("magic-items-2", "identifiedOnly", { name: "MAGICITEMS.SettingIdentifiedOnly", hint: "MAGICITEMS.SettingIdentifiedOnlyHint", scope: "world", @@ -19,7 +19,7 @@ Hooks.once('init', () => { config: true, }); - game.settings.register("magicitems", "hideFromPlayers", { + game.settings.register("magic-items-2", "hideFromPlayers", { name: "MAGICITEMS.SettingHideFromPlayers", hint: "MAGICITEMS.SettingHideFromPlayersHint", scope: "world", @@ -31,7 +31,7 @@ Hooks.once('init', () => { if(typeof Babele !== 'undefined') { Babele.get().register({ - module: 'magicitems', + module: 'magic-items-2', lang: 'it', dir: 'lang/packs/it' }); @@ -51,7 +51,7 @@ Hooks.once('createActor', (actor) => { }); Hooks.on(`renderItemSheet5e`, (app, html, data) => { - if(!game.user.isGM && game.settings.get("magicitems", "hideFromPlayers")) { + if(!game.user.isGM && game.settings.get("magic-items-2", "hideFromPlayers")) { return; } MagicItemTab.bind(app, html, data);