Skip to content

Commit

Permalink
version 0.6.9
Browse files Browse the repository at this point in the history
  • Loading branch information
p4535992 committed Oct 8, 2022
1 parent a292ff6 commit f2935a5
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### 0.6.0-1-2-3-4-5-6-7-8
### 0.6.0-1-2-3-4-5-6-7-8-9

- Update fvtt10

Expand Down
2 changes: 0 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,8 @@ const createTransformer = () => {
return factory.updateExportDeclaration(node, node.decorators, node.modifiers, false, node.exportClause, newModuleSpecifier,undefined);
}
}
console.log(`22`);
return visitEachChild(node, visitor, context);
}
console.log(`23`);
return visitNode(node, visitor);
};
};
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "inventory-plus",
"title": "Inventory+",
"description": "Enhances the default dnd5e sheets inventory to allow for reorganization",
"version": "0.6.8",
"version": "0.6.9",
"main": "main.js",
"scripts": {
"publish": "gulp publish --update",
Expand Down
6 changes: 3 additions & 3 deletions src/module.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "inventory-plus",
"title": "Inventory+",
"description": "Enhances the default dnd5e sheets inventory to allow for reorganization",
"version": "0.6.8",
"version": "0.6.9",
"authors": [
{ "name": "Felix#6196" },
{
Expand Down Expand Up @@ -76,8 +76,8 @@
"url": "https://github.com/p4535992/foundryvtt-inventory-plus",
"manifest": "https://github.com/p4535992/foundryvtt-inventory-plus/releases/latest/download/module.json",
"download": "https://github.com/p4535992/foundryvtt-inventory-plus/releases/latest/download/module.zip",
"readme": "https://github.com/p4535992/foundryvtt-inventory-plus/blob/v0.6.8/README.md",
"changelog": "https://github.com/p4535992/foundryvtt-inventory-plus/blob/v0.6.8/CHANGELOG.md",
"readme": "https://github.com/p4535992/foundryvtt-inventory-plus/blob/v0.6.9/README.md",
"changelog": "https://github.com/p4535992/foundryvtt-inventory-plus/blob/v0.6.9/CHANGELOG.md",
"bugs": "https://github.com/p4535992/foundryvtt-inventory-plus/issues",
"allowBugReporter": true,
"relationships": {
Expand Down
14 changes: 8 additions & 6 deletions src/scripts/lib/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,17 +326,19 @@ export function getCSSName(element): string | undefined {

export async function retrieveItemFromData(
actor: Actor,
itemUuid: string,
itemId: string,
itemName: string,
currentCompendium: string,
sourceActorId: string,
itemReference: any
sourceActorId: string
): Promise<Item> {
let itemFounded: Item | null = null;
//@ts-ignore
itemFounded = await Item.implementation.fromDropData(itemReference);
if (itemFounded) {
return itemFounded;
if (itemUuid) {
//@ts-ignore
itemFounded = await Item.implementation.fromDropData({ type: "Item", uuid: itemUuid });
if (itemFounded) {
return itemFounded;
}
}
if (currentCompendium) {
const pack = game.packs.get(currentCompendium);
Expand Down
8 changes: 4 additions & 4 deletions src/scripts/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export const readyHooks = async (): Promise<void> => {
/*
const itemId = itemDropped?.uuid
? itemDropped?.uuid.includes("Item.")
? itemDropped?.uuid.replace("Item.", "")
? itemDropped?.uuid.split('.').pop()
: itemDropped?.uuid
: itemDropped?.id;
if (!itemId) {
Expand All @@ -111,15 +111,15 @@ export const readyHooks = async (): Promise<void> => {
const dragAndDropFromActorSource = itemDropped.actorId ? true : false;
*/
const dragAndDropFromCompendium = itemDropped?.uuid.includes("Compendium");
const dragAndDropFromActorSource = itemDropped?.uuid.includes("Actor");
const itemCurrent = await retrieveItemFromData(
actor,
itemDropped.uuid,
itemDropped.id,
"",
itemDropped.pack,
itemDropped.actorId,
itemDropped
itemDropped.actorId
);
const dragAndDropFromActorSource = itemDropped?.actorId === actor.id ? true : false;
const itemId = itemCurrent.id;
let itemData: Item | null = null;
if (!itemCurrent) {
Expand Down

0 comments on commit f2935a5

Please sign in to comment.