Prevent attribute items from being embedded if there is already an attribute with the same key

This commit is contained in:
Oliver 2026-04-23 18:06:00 -06:00
parent f1499d1c3d
commit 6ccc10f897
3 changed files with 30 additions and 3 deletions

View file

@ -59,9 +59,9 @@ export class PlayerData extends foundry.abstract.TypeDataModel {
};
// #endregion Lifecycle
// #region Getters
// #region Methods
get hasAttributes() {
return Object.keys(this.attr).length > 0;
};
// #endregion Getters
// #endregion Methods
};