From 35d16b0f0b90a0a12b0084fe0ea4b6667fee6db9 Mon Sep 17 00:00:00 2001 From: AngryBeaver Date: Mon, 6 Feb 2023 23:07:53 +0100 Subject: [PATCH 1/3] fix tools --- changelog.md | 2 ++ module.json | 2 +- package.json | 2 +- src/apps/ToolConfig.ts | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/changelog.md b/changelog.md index 173fef5..5fe4b69 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,7 @@ # Changelog ## 2.3.x feature system independent +## 2.3.2 fix tools +fixed: using tools was completely broken. ## 2.3.1 bug pulling items from compendium fixed: when dropping items from compendium they no longer have an itemType thus they will not be detected correctly as equal to any item on actor. diff --git a/module.json b/module.json index fc8fb16..000398c 100644 --- a/module.json +++ b/module.json @@ -2,7 +2,7 @@ "title": "Beaver's Crafting Module", "description": "A Crafting Module for DnD", "id": "beavers-crafting", - "version": "2.3.1", + "version": "2.3.2", "authors": [ { "name": "angryBeaver", diff --git a/package.json b/package.json index 21060be..0268f30 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "beavers-crafting", "title": "Beaver's Crafting", - "version": "2.3.1", + "version": "2.3.2", "description": "Crafting", "devDir": "C:\\Users\\Riess\\AppData\\Local\\FoundryVTT\\Data\\modules", "main": "src/main.js", diff --git a/src/apps/ToolConfig.ts b/src/apps/ToolConfig.ts index 8362804..6f68a6f 100644 --- a/src/apps/ToolConfig.ts +++ b/src/apps/ToolConfig.ts @@ -99,6 +99,6 @@ async function _setToolConfig(){ } async function _addToolConfig(uuid){ const item = await getItem(uuid); - const component = beaversSystemInterface.componentCreate({...item,type:"Tool"}); + const component = beaversSystemInterface.componentFromEntity(item); components.push(component); } From bc484e355cdb378551641a9aafede31866ed99cb Mon Sep 17 00:00:00 2001 From: AngryBeaver Date: Mon, 6 Feb 2023 23:08:43 +0100 Subject: [PATCH 2/3] fix tools --- changelog.md | 1 + 1 file changed, 1 insertion(+) diff --git a/changelog.md b/changelog.md index 5fe4b69..246c749 100644 --- a/changelog.md +++ b/changelog.md @@ -2,6 +2,7 @@ ## 2.3.x feature system independent ## 2.3.2 fix tools fixed: using tools was completely broken. +(tools are deprecated dnd5e only) ## 2.3.1 bug pulling items from compendium fixed: when dropping items from compendium they no longer have an itemType thus they will not be detected correctly as equal to any item on actor. From a3e9b659c35c90bd553e0bac65502cb195ac301b Mon Sep 17 00:00:00 2001 From: AngryBeaver Date: Mon, 6 Feb 2023 23:09:18 +0100 Subject: [PATCH 3/3] fix tools --- changelog.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index 246c749..1fa441c 100644 --- a/changelog.md +++ b/changelog.md @@ -2,7 +2,7 @@ ## 2.3.x feature system independent ## 2.3.2 fix tools fixed: using tools was completely broken. -(tools are deprecated dnd5e only) +(jfi: tools are deprecated in favour of attendants dnd5e only) ## 2.3.1 bug pulling items from compendium fixed: when dropping items from compendium they no longer have an itemType thus they will not be detected correctly as equal to any item on actor.