More style improvements

This commit is contained in:
WBHarry 2025-08-04 15:50:43 +02:00
parent 0823329579
commit 28a1566b08
14 changed files with 33 additions and 18 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;
}