Cleanup log statement
This commit is contained in:
parent
cad3cdd5f1
commit
30fee77c8e
6 changed files with 3 additions and 6 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -136,6 +136,7 @@ async function preUntypedEmbed(item) {
|
|||
function getRollData() {
|
||||
const data = {
|
||||
initiative: this.system.stats.hands ?? 0,
|
||||
stats: this.system.stats,
|
||||
};
|
||||
return data;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -43,7 +43,6 @@ export class MobSheet extends GenericActorSheet {
|
|||
|
||||
// Compute rolls here
|
||||
|
||||
console.log(actor.uuid, `context:`, ctx)
|
||||
return ctx;
|
||||
};
|
||||
};
|
||||
|
|
@ -38,7 +38,6 @@ export class PlayerSheet extends GenericActorSheet {
|
|||
canAddAspect: !await actor.proxyFunction.bind(actor)(`atAspectLimit`),
|
||||
};
|
||||
|
||||
console.log(actor.uuid, `context:`, ctx)
|
||||
return ctx;
|
||||
};
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue