diff --git a/module/apps/AttributeManager.mjs b/module/apps/AttributeManager.mjs index d3874ba..2029e0d 100644 --- a/module/apps/AttributeManager.mjs +++ b/module/apps/AttributeManager.mjs @@ -1,6 +1,5 @@ import { __ID__, filePath } from "../consts.mjs"; import { attributeSorter } from "../utils/attributeSort.mjs"; -import { Logger } from "../utils/Logger.mjs"; import { toID } from "../utils/toID.mjs"; const { HandlebarsApplicationMixin, ApplicationV2 } = foundry.applications.api; @@ -133,7 +132,6 @@ export class AttributeManager extends HandlebarsApplicationMixin(ApplicationV2) }; }; - Logger.debug(`Updating ${binding} value to ${value}`); setProperty(this.#attributes, binding, value); await this.render({ parts: [ `attributes` ]}); }; diff --git a/module/documents/Actor.mjs b/module/documents/Actor.mjs index de78395..ff72c77 100644 --- a/module/documents/Actor.mjs +++ b/module/documents/Actor.mjs @@ -1,10 +1,7 @@ -import { Logger } from "../utils/Logger.mjs"; - const { Actor } = foundry.documents; export class TAFActor extends Actor { async modifyTokenAttribute(attribute, value, isDelta = false, isBar = true) { - Logger.table({ attribute, value, isDelta, isBar }); const attr = foundry.utils.getProperty(this.system, attribute); const current = isBar ? attr.value : attr; const update = isDelta ? current + value : value; diff --git a/module/documents/Token.mjs b/module/documents/Token.mjs index b6baf2d..068c737 100644 --- a/module/documents/Token.mjs +++ b/module/documents/Token.mjs @@ -1,5 +1,3 @@ -import { Logger } from "../utils/Logger.mjs"; - const { TokenDocument } = foundry.documents; const { getProperty, getType, hasProperty, isSubclass } = foundry.utils; @@ -61,7 +59,7 @@ export class TAFTokenDocument extends TokenDocument { */ getBarAttribute(barName, {alternative} = {}) { const attribute = alternative || this[barName]?.attribute; - Logger.log(barName, attribute); + if (!attribute || !this.actor) { return null; };