mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-11 19:25:21 +01:00
Fixed so that using the loop button actually increases/decreases max on looping instead of cocatenating to string (#1314)
This commit is contained in:
parent
207220ff7b
commit
e77f538ab7
1 changed files with 2 additions and 2 deletions
|
|
@ -184,9 +184,9 @@ export default class DhCountdowns extends HandlebarsApplicationMixin(Application
|
||||||
const countdown = settings.countdowns[target.id];
|
const countdown = settings.countdowns[target.id];
|
||||||
const newMax =
|
const newMax =
|
||||||
countdown.progress.looping === CONFIG.DH.GENERAL.countdownLoopingTypes.increasing.id
|
countdown.progress.looping === CONFIG.DH.GENERAL.countdownLoopingTypes.increasing.id
|
||||||
? countdown.progress.max + 1
|
? Number(countdown.progress.max) + 1
|
||||||
: countdown.progress.looping === CONFIG.DH.GENERAL.countdownLoopingTypes.decreasing.id
|
: countdown.progress.looping === CONFIG.DH.GENERAL.countdownLoopingTypes.decreasing.id
|
||||||
? Math.max(countdown.progress.max - 1, 0)
|
? Math.max(Number(countdown.progress.max) - 1, 0)
|
||||||
: countdown.progress.max;
|
: countdown.progress.max;
|
||||||
await settings.updateSource({
|
await settings.updateSource({
|
||||||
[`countdowns.${target.id}.progress`]: {
|
[`countdowns.${target.id}.progress`]: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue