mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-07-22 10:29:54 +02:00
[Review] Move visible countdown types to getter (#1999)
* Move visible countdown types to getter * Punchier shimmer animation
This commit is contained in:
parent
919e872f68
commit
ec56e1812c
3 changed files with 29 additions and 19 deletions
|
|
@ -15,7 +15,7 @@ export default class DhCountdowns extends foundry.abstract.DataModel {
|
|||
}
|
||||
|
||||
handleChange() {
|
||||
const previousCountdowns = foundry.ui.countdowns.previusCountdownData;
|
||||
const previousCountdowns = foundry.ui.countdowns.previousCountdownData;
|
||||
const changedCountdowns = Object.entries(this.countdowns).reduce((acc, [key, countdown]) => {
|
||||
const previousCountdown = previousCountdowns[key];
|
||||
if (!previousCountdown || (previousCountdown.progress.current !== countdown.progress.current)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue