mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-04-23 07:53:39 +02:00
PRETTIER
This commit is contained in:
parent
179deae6df
commit
dead31db03
11 changed files with 175 additions and 172 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import DHBaseActorSettings from "../sheets/api/actor-setting.mjs";
|
||||
import DHBaseActorSettings from '../sheets/api/actor-setting.mjs';
|
||||
|
||||
/**@typedef {import('@client/applications/_types.mjs').ApplicationClickAction} ApplicationClickAction */
|
||||
|
||||
|
|
@ -9,7 +9,7 @@ export default class DHAdversarySettings extends DHBaseActorSettings {
|
|||
position: { width: 455, height: 'auto' },
|
||||
actions: {
|
||||
addExperience: DHAdversarySettings.#addExperience,
|
||||
removeExperience: DHAdversarySettings.#removeExperience,
|
||||
removeExperience: DHAdversarySettings.#removeExperience
|
||||
},
|
||||
dragDrop: [
|
||||
{ dragSelector: null, dropSelector: '.tab.features' },
|
||||
|
|
@ -42,7 +42,6 @@ export default class DHAdversarySettings extends DHBaseActorSettings {
|
|||
}
|
||||
};
|
||||
|
||||
|
||||
/** @override */
|
||||
static TABS = {
|
||||
primary: {
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ export default class DHCompanionSettings extends DHBaseActorSettings {
|
|||
position: { width: 455, height: 'auto' },
|
||||
actions: {
|
||||
levelUp: DHCompanionSettings.#levelUp
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
/**@inheritdoc */
|
||||
|
|
@ -35,7 +35,6 @@ export default class DHCompanionSettings extends DHBaseActorSettings {
|
|||
}
|
||||
};
|
||||
|
||||
|
||||
/** @inheritdoc */
|
||||
static TABS = {
|
||||
primary: {
|
||||
|
|
@ -68,9 +67,7 @@ export default class DHCompanionSettings extends DHBaseActorSettings {
|
|||
*/
|
||||
async onPartnerChange(event) {
|
||||
const value = event.target.value;
|
||||
const partnerDocument = value
|
||||
? await foundry.utils.fromUuid(value)
|
||||
: this.actor.system.partner;
|
||||
const partnerDocument = value ? await foundry.utils.fromUuid(value) : this.actor.system.partner;
|
||||
const partnerUpdate = { 'system.companion': value ? this.actor.uuid : null };
|
||||
|
||||
if (!partnerDocument.isOwner) {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import DHBaseActorSettings from "../sheets/api/actor-setting.mjs";
|
||||
import DHBaseActorSettings from '../sheets/api/actor-setting.mjs';
|
||||
|
||||
/**@typedef {import('@client/applications/_types.mjs').ApplicationClickAction} ApplicationClickAction */
|
||||
|
||||
|
|
@ -49,7 +49,6 @@ export default class DHEnvironmentSettings extends DHBaseActorSettings {
|
|||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Adds a new category entry to the actor.
|
||||
* @type {ApplicationClickAction}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue