Add comments for the v13 shims to make it easier to find them

This commit is contained in:
Oliver 2026-04-05 20:23:11 -06:00
parent cfa352e5e0
commit e4e1f30fcb
2 changed files with 3 additions and 0 deletions

View file

@ -137,6 +137,7 @@ export class AttributeManager extends HandlebarsApplicationMixin(ApplicationV2)
const attrs = [];
for (const [id, data] of Object.entries(this.#attributes)) {
if (data == null) { continue };
// Remove with issue: Foundry/taf#54
if (game.release.generation >= 14 && data == _del) {continue}
attrs.push({
id,
@ -186,6 +187,7 @@ export class AttributeManager extends HandlebarsApplicationMixin(ApplicationV2)
static async #remove($e, element) {
const attribute = element.closest(`[data-attribute]`)?.dataset.attribute;
if (!attribute) { return };
// Remove with issue: Foundry/taf#54
if (game.release.generation < 14) {
delete this.#attributes[attribute];
this.#attributes[`-=${attribute}`] = null;