[Fix] Inventory Item Transfer (#1316)

* Fixed so items from the inventory tab of the Party sheet can be dragged out

* Added transfer logic

* Added translation

* Improved item transfer dialog title

* Simplified title

* Updated image

* Simplified the handlebars templates for itemTransfer

* Improved item-identicial check

* Slight improved rendering

* .
This commit is contained in:
WBHarry 2025-11-23 15:04:42 +01:00 committed by GitHub
parent 9f7554cdff
commit 2920ead81a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 228 additions and 47 deletions

View file

@ -437,3 +437,11 @@ export function shuffleArray(array) {
return array;
}
export function itemIsIdentical(a, b) {
const compendiumSource = a._stats.compendiumSource === b._stats.compendiumSource;
const name = a.name === b.name;
const description = a.system.description === b.system.description;
return compendiumSource && name & description;
}