mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-07 14:36:13 +01:00
Finally finished the migration ._.
This commit is contained in:
parent
26ae17c3cf
commit
90ca39ebda
3 changed files with 121 additions and 35 deletions
|
|
@ -45,6 +45,13 @@ export default class ArmorActiveEffectConfig extends HandlebarsApplicationMixin(
|
|||
const partContext = await super._preparePartContext(partId, context);
|
||||
if (partId in partContext.tabs) partContext.tab = partContext.tabs[partId];
|
||||
|
||||
switch (partId) {
|
||||
case 'details':
|
||||
partContext.isActorEffect = this.document.parent?.documentName === 'Actor';
|
||||
partContext.isItemEffect = this.document.parent?.documentName === 'Item';
|
||||
break;
|
||||
}
|
||||
|
||||
return partContext;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ export default class DhProgress {
|
|||
|
||||
advance({ by = 1, label = this.label } = {}) {
|
||||
if (this.value === this.max) return;
|
||||
this.value += Math.abs(by);
|
||||
this.value = (this.value ?? 0) + Math.abs(by);
|
||||
this.#notification.update({ message: label, pct: this.value / this.max });
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue