[Feature] DualityDice DiceSoNice Animations (#1722)

* .

* Fixed translation

* Remove fieldset

* DiceSoNice Animation Overrides (#1726)

* .

* .

* Fixed hope/fear animation input

* Visual tweaks to general tab

* Move general tab to top

* Fixed localizaiton

---------

Co-authored-by: Carlos Fernandez <cfern1990@gmail.com>
This commit is contained in:
WBHarry 2026-03-13 00:15:52 +01:00 committed by GitHub
parent 6c7937a9ff
commit 8172e8baa7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 492 additions and 150 deletions

View file

@ -21,7 +21,7 @@ const bonusField = label =>
dice: new fields.ArrayField(new fields.StringField(), { label: `${game.i18n.localize(label)} Dice` })
});
/**
/**
* Field used for actor resources. It is a resource that validates dynamically based on the config.
* Because "max" may be defined during runtime, we don't attempt to clamp the maximum value.
*/
@ -78,7 +78,7 @@ class ResourcesField extends fields.TypedObjectField {
const resource = resources[key];
value.label = resource.label;
value.isReversed = resources[key].reverse;
value.max = typeof resource.max === 'number' ? value.max ?? resource.max : null;
value.max = typeof resource.max === 'number' ? (value.max ?? resource.max) : null;
}
return data;
}