Cleanup log statement

This commit is contained in:
Oliver-Akins 2024-02-10 13:22:20 -07:00
parent cad3cdd5f1
commit 30fee77c8e
6 changed files with 3 additions and 6 deletions

View file

@ -27,7 +27,6 @@ export class DiceList extends GenericDialog {
async getData() { async getData() {
const ctx = await super.getData(); const ctx = await super.getData();
ctx.dice = this.dice; ctx.dice = this.dice;
console.debug(`DiceList context`, ctx);
return ctx; return ctx;
}; };

View file

@ -85,7 +85,6 @@ export class ActorHandler extends Actor {
*/ */
async preItemEmbed(item) { async preItemEmbed(item) {
let type = item.type[0].toUpperCase() + item.type.slice(1); let type = item.type[0].toUpperCase() + item.type.slice(1);
console.log(`preEmbed type =`, type)
if (this.fn?.[`pre${type}Embed`]) { if (this.fn?.[`pre${type}Embed`]) {
return await this.fn?.[`pre${type}Embed`].bind(this)(item); return await this.fn?.[`pre${type}Embed`].bind(this)(item);
}; };

View file

@ -136,6 +136,7 @@ async function preUntypedEmbed(item) {
function getRollData() { function getRollData() {
const data = { const data = {
initiative: this.system.stats.hands ?? 0, initiative: this.system.stats.hands ?? 0,
stats: this.system.stats,
}; };
return data; return data;
}; };

View file

@ -105,9 +105,9 @@ Hooks.once(`ready`, () => {
let defaultTab = game.settings.get(`dotdungeon`, `defaultTab`); let defaultTab = game.settings.get(`dotdungeon`, `defaultTab`);
if (defaultTab) { if (defaultTab) {
if (!ui.sidebar?.tabs?.[defaultTab]) { if (!ui.sidebar?.tabs?.[defaultTab]) {
console.error(`Couldn't find a sidebar tab with ID:`, defaultTab); console.error(`.dungeon | Couldn't find a sidebar tab with ID:`, defaultTab);
} else { } else {
console.debug(`Switching sidebar tab to:`, defaultTab); console.debug(`.dungeon | Switching sidebar tab to:`, defaultTab);
ui.sidebar.tabs[defaultTab].activate(); ui.sidebar.tabs[defaultTab].activate();
}; };
}; };

View file

@ -43,7 +43,6 @@ export class MobSheet extends GenericActorSheet {
// Compute rolls here // Compute rolls here
console.log(actor.uuid, `context:`, ctx)
return ctx; return ctx;
}; };
}; };

View file

@ -38,7 +38,6 @@ export class PlayerSheet extends GenericActorSheet {
canAddAspect: !await actor.proxyFunction.bind(actor)(`atAspectLimit`), canAddAspect: !await actor.proxyFunction.bind(actor)(`atAspectLimit`),
}; };
console.log(actor.uuid, `context:`, ctx)
return ctx; return ctx;
}; };
}; };