[Feature] Damage Reduction Rules (#574)

* More rules

* Updated some cards with damageReduction

* Fixed Endurance and HighStamina Features

* More style improvements
This commit is contained in:
WBHarry 2025-08-04 16:18:03 +02:00 committed by GitHub
parent 6bdeccfbf9
commit 02a8a9c313
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
59 changed files with 640 additions and 245 deletions

View file

@ -112,9 +112,9 @@ export default class DHItem extends foundry.documents.Item {
* Generate a localized label array for this item.
* @returns {(string | { value: string, icons: string[] })[]} An array of localized strings and damage label objects.
*/
getLabels() {
_getLabels() {
const labels = [];
if (this.system.getLabels) labels.push(...this.system.getLabels());
if (this.system._getLabels) labels.push(...this.system._getLabels());
return labels;
}