mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-06-06 04:44:16 +02:00
Fixed linting
This commit is contained in:
parent
a842299969
commit
9453d60707
2 changed files with 19 additions and 17 deletions
|
|
@ -133,16 +133,15 @@ export default class ClassSheet extends DHBaseItemSheet {
|
|||
if (!this.document.system.identifier) {
|
||||
return ui.notifications.error(
|
||||
game.i18n.localize('DAGGERHEART.UI.Notifications.classMissingIdentifier')
|
||||
);
|
||||
);
|
||||
}
|
||||
|
||||
if (item.system.classIdentifiers.includes(this.document.system.identifier))
|
||||
return;
|
||||
if (item.system.classIdentifiers.includes(this.document.system.identifier)) return;
|
||||
|
||||
await item.update({ 'system.classIdentifiers': [...item.system.classIdentifiers, this.document.system.identifier] });
|
||||
}
|
||||
|
||||
else if (['feature', 'ActiveEffect'].includes(itemType)) {
|
||||
await item.update({
|
||||
'system.classIdentifiers': [...item.system.classIdentifiers, this.document.system.identifier]
|
||||
});
|
||||
} else if (['feature', 'ActiveEffect'].includes(itemType)) {
|
||||
super._onDrop(event);
|
||||
} else if (this.document.parent?.type !== 'character') {
|
||||
if (itemType === 'weapon') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue