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
|
|
@ -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