mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-18 07:59:03 +01:00
remove attachment only logic in favor of just transfer
This commit is contained in:
parent
a9e584d619
commit
896f317c6d
4 changed files with 10 additions and 23 deletions
|
|
@ -6,12 +6,6 @@ export default class DhActiveEffect extends ActiveEffect {
|
|||
return false;
|
||||
}
|
||||
|
||||
// First check for attachment-only effects - these should ALWAYS be suppressed on the original item
|
||||
// They only work through copied versions when attached
|
||||
if (this.isAttachmentOnly) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// Then apply the standard suppression rules
|
||||
if (['weapon', 'armor'].includes(this.parent?.type)) {
|
||||
return !this.parent.system.equipped;
|
||||
|
|
@ -24,14 +18,6 @@ export default class DhActiveEffect extends ActiveEffect {
|
|||
return super.isSuppressed;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if this effect is marked as attachment-only
|
||||
* @returns {boolean}
|
||||
*/
|
||||
get isAttachmentOnly() {
|
||||
return this.flags?.daggerheart?.attachmentOnly === true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the parent item is currently attached to another item
|
||||
* @returns {boolean}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue