Skip to content

Commit

Permalink
Merge pull request #2126 from crnormand/bugfix/2125-cannot-drop-otfs-…
Browse files Browse the repository at this point in the history
…on-quick-notes-area

bugfix/2125-cannot-drop-otfs-on-quick-notes-area
  • Loading branch information
mjeffw authored Jan 18, 2025
2 parents 49d4984 + eae5a8b commit e8c31c5
Showing 1 changed file with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions module/actor/actor-sheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -1048,27 +1048,26 @@ export class GurpsActorSheet extends ActorSheet {
let add = ''
const { n, id } = this._getItemData(dragData)
dragData.id = id
if (!!n) {
add = ` [${dragData.type}[${dragData.id}]` + '{' + n + '}]'
if (!!dragData.otf) {
let prefix = ''
if (!!dragData.displayname) {
let q = '"'
if (dragData.displayname.includes(q)) q = "'"
prefix = q + dragData.displayname + q
}
add = '[' + prefix + dragData.otf + ']'
}
if (!!dragData.bucket) {
add = '["Modifier Bucket"'
let sep = ''
dragData.bucket.forEach(otf => {
add += sep + '/r [' + otf + ']'
sep = '\\\\'
})
add += ']'
if (!!n) add = ` [${dragData.type}[${dragData.id}]` + '{' + n + '}]'
if (!!dragData.otf) {
let prefix = ''
if (!!dragData.displayname) {
let q = '"'
if (dragData.displayname.includes(q)) q = "'"
prefix = q + dragData.displayname + q
}
add = '[' + prefix + dragData.otf + ']'
}
if (!!dragData.bucket) {
add = '["Modifier Bucket"'
let sep = ''
dragData.bucket.forEach(otf => {
add += sep + '/r [' + otf + ']'
sep = '\\\\'
})
add += ']'
}

if (!!add)
if (!!modelkey) {
let t = foundry.utils.getProperty(this.actor, modelkey) || ''
Expand Down

0 comments on commit e8c31c5

Please sign in to comment.