From d3e66b88461f89dfcd5a915c3a8c40ccdfb01fd6 Mon Sep 17 00:00:00 2001 From: CPTN Cosmo Date: Tue, 10 Feb 2026 03:39:09 +0100 Subject: [PATCH] chore: remove debug console logs --- scripts/module.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/scripts/module.js b/scripts/module.js index 444370a..5abd95d 100644 --- a/scripts/module.js +++ b/scripts/module.js @@ -129,7 +129,6 @@ function isCriticalHit(roll) { } if (hopeTotal !== undefined && fearTotal !== undefined) { - console.log('Duality Check:', hopeTotal, fearTotal); return hopeTotal === fearTotal; } } @@ -203,38 +202,30 @@ Hooks.on('renderChatMessageHTML', (message, html, data) => { // Hook into DiceSoNice to trigger effects // Hook into DiceSoNice to trigger effects Hooks.on('diceSoNiceRollStart', (messageId, context) => { - console.log('DSN Hook Fired', messageId, context); const roll = context.roll; if (!roll) return; if (isCriticalHit(roll)) { - console.log('DSN: Critical Hit Detected'); const effect = game.settings.get('dh-immersive-crits', 'dsnCritEffect'); - console.log('DSN Effect:', effect); if (effect && effect !== 'none') { // Check if roll.dice exists and has elements if (roll.dice && roll.dice.length > 0) { roll.dice.forEach(die => { if (!die.options) die.options = {}; die.options.specialEffect = effect === 'default' ? 'Stars' : capitalize(effect); - console.log('Applied effect to die:', die); }); } else { // Determine if we need to iterate terms for Duality Rolls - console.log('No roll.dice found. Checking terms:', roll.terms); if (roll.terms) { roll.terms.forEach(term => { if (term.faces) { // It's a die if (!term.options) term.options = {}; term.options.specialEffect = effect === 'default' ? 'Stars' : capitalize(effect); - console.log('Applied effect to term:', term); } }); } } } - } else { - console.log('DSN: Not a Critical Hit', roll.constructor.name, roll); } });