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() {
const ctx = await super.getData();
ctx.dice = this.dice;
console.debug(`DiceList context`, ctx);
return ctx;
};

View file

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

View file

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

View file

@ -105,9 +105,9 @@ Hooks.once(`ready`, () => {
let defaultTab = game.settings.get(`dotdungeon`, `defaultTab`);
if (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 {
console.debug(`Switching sidebar tab to:`, defaultTab);
console.debug(`.dungeon | Switching sidebar tab to:`, defaultTab);
ui.sidebar.tabs[defaultTab].activate();
};
};

View file

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

View file

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