Cleanup logger statements

This commit is contained in:
Oliver-Akins 2025-07-24 20:33:07 -06:00
parent db3cad909e
commit 02b49687cf
3 changed files with 1 additions and 8 deletions

View file

@ -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;

View file

@ -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;
};