mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-13 12:11:07 +01:00
Fixed DSN rolling; removed console messages; chat message clean up
This commit is contained in:
parent
bfc84bdb2d
commit
2e6a17d787
9 changed files with 11 additions and 21 deletions
|
|
@ -249,7 +249,6 @@ Hooks.on('chatMessage', (_, message) => {
|
|||
}
|
||||
|
||||
if (message.startsWith('/fr')) {
|
||||
console.log("fr message", message);
|
||||
const result =
|
||||
message.trim().toLowerCase() === '/fr' ? { result: {} } : rollCommandToJSON(message.replace(/\/fr\s?/, ''));
|
||||
if (!result) {
|
||||
|
|
@ -259,12 +258,10 @@ Hooks.on('chatMessage', (_, message) => {
|
|||
|
||||
const { result: rollCommand, flavor } = result;
|
||||
|
||||
console.log("rollCommand", rollCommand);
|
||||
const fateType = rollCommand.type ?? "Hope";
|
||||
console.log("fateType", fateType);
|
||||
|
||||
const target = getCommandTarget({ allowNull: true });
|
||||
const title = 'Fate';
|
||||
const title = fateType + ' Fate Roll';
|
||||
|
||||
enrichedFateRoll({
|
||||
target,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue