mirror of
https://github.com/Burn-E99/TheArtificer.git
synced 2026-06-04 09:03:50 -04:00
change hide details to just hide the 1+2+3 part
This commit is contained in:
@@ -103,7 +103,8 @@ export const runCmd = (fullCmd: string, modifiers: RollModifiers): SolvedRoll =>
|
|||||||
line2 += `${preFormat}${modifiers.commaTotals ? e.rollTotal.toLocaleString() : e.rollTotal}${postFormat}, `;
|
line2 += `${preFormat}${modifiers.commaTotals ? e.rollTotal.toLocaleString() : e.rollTotal}${postFormat}, `;
|
||||||
}
|
}
|
||||||
|
|
||||||
line3 += `\`${e.initConfig}\` = ${e.rollDetails} = ${preFormat}${modifiers.commaTotals ? e.rollTotal.toLocaleString() : e.rollTotal}${postFormat}\n`;
|
const rollDetails = modifiers.noDetails ? ' = ' : ` = ${e.rollDetails} = `;
|
||||||
|
line3 += `\`${e.initConfig}\`${rollDetails}${preFormat}${modifiers.commaTotals ? e.rollTotal.toLocaleString() : e.rollTotal}${postFormat}\n`;
|
||||||
});
|
});
|
||||||
|
|
||||||
// If order is on, remove trailing ", "
|
// If order is on, remove trailing ", "
|
||||||
|
|||||||
@@ -125,13 +125,9 @@ export const generateRollEmbed = async (authorId: bigint, returnDetails: SolvedR
|
|||||||
let details = '';
|
let details = '';
|
||||||
|
|
||||||
if (!modifiers.superNoDetails) {
|
if (!modifiers.superNoDetails) {
|
||||||
if (modifiers.noDetails) {
|
|
||||||
details = `**Details:**\nSuppressed by -nd flag`;
|
|
||||||
} else {
|
|
||||||
details = `**Details:**\n${modifiers.spoiler}${returnDetails.line3}${modifiers.spoiler}`;
|
details = `**Details:**\n${modifiers.spoiler}${returnDetails.line3}${modifiers.spoiler}`;
|
||||||
loggingEnabled && log(LT.LOG, `${returnDetails.line3} |&| ${details}`);
|
loggingEnabled && log(LT.LOG, `${returnDetails.line3} |&| ${details}`);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
const baseDesc = `<@${authorId}>${returnDetails.line1}\n**${line2Details.shift()}:**\n${line2Details.join(': ')}`;
|
const baseDesc = `<@${authorId}>${returnDetails.line1}\n**${line2Details.shift()}:**\n${line2Details.join(': ')}`;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user