diff --git a/CHANGELOG.md b/CHANGELOG.md index a3f59df..cb45ac5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ __! Be certain to carefully back up any critical user data before installing thi - Updated the initiative behaviour, he now open the DicePicker for connected players. - Added a `game.user.isFirstGM` property for some traitements (socket and migration) to prevent multiple executions with multiple GM connected. - Added socket API `openDicePicker` to remotely open the DicePicker (see usage below). +- Added chat distinction for roll using target (`@T:`) with `min` or `max` for non disclose the target to players. - Added a distinction when clicking on the dice icon on Chat tab : - Left clic, open the DP locally (as usual). - Right clic (GM only), now open the DP for players with all skills in list. diff --git a/system/lang/en-en.json b/system/lang/en-en.json index 7e74d64..33a2f88 100644 --- a/system/lang/en-en.json +++ b/system/lang/en-en.json @@ -128,7 +128,8 @@ "initiative_roll": "Initiative roll", "success_text": "Success!", "bonus_text": "bonus successes", - "fail_text": "Fail!" + "fail_text": "Fail!", + "unknown_target": "Unknown target" }, "dicepicker": { "title": "Dice Picker", diff --git a/system/lang/es-es.json b/system/lang/es-es.json index 4218e2b..cdedac6 100644 --- a/system/lang/es-es.json +++ b/system/lang/es-es.json @@ -128,7 +128,8 @@ "initiative_roll": "Tirada de Iniciativa", "success_text": "¡Éxito!", "bonus_text": "Éxitos adicionales", - "fail_text": "¡Fallo!" + "fail_text": "¡Fallo!", + "unknown_target": "Unknown target" }, "dicepicker": { "title": "Dice Picker", diff --git a/system/lang/fr-fr.json b/system/lang/fr-fr.json index d6361ab..01a58ce 100644 --- a/system/lang/fr-fr.json +++ b/system/lang/fr-fr.json @@ -128,7 +128,8 @@ "initiative_roll": "Jet d'initiative", "success_text": "Succès !", "bonus_text": "succès bonus", - "fail_text": "Échec !" + "fail_text": "Échec !", + "unknown_target": "Cible inconnue" }, "dicepicker": { "title": "Dice Picker", diff --git a/system/lang/it-it.json b/system/lang/it-it.json index e1a90b6..e159bc9 100644 --- a/system/lang/it-it.json +++ b/system/lang/it-it.json @@ -128,7 +128,8 @@ "initiative_roll": "Tiro Iniziativa", "success_text": "Successo!", "bonus_text": "successi bonus", - "fail_text": "Fallimento!" + "fail_text": "Fallimento!", + "unknown_target": "Unknown target" }, "dicepicker": { "title": "Selezione dadi", diff --git a/system/scripts/dice/roll.js b/system/scripts/dice/roll.js index 0bbad72..521c077 100644 --- a/system/scripts/dice/roll.js +++ b/system/scripts/dice/roll.js @@ -290,6 +290,9 @@ export class RollL5r5e extends Roll { tooltip: isPrivate ? "" : await this.getTooltip({ from: "render" }), total: isPrivate ? "?" : this.total, profileImg: this.l5r5e.actor?.img || "icons/svg/mystery-man.svg", + noTargetDisclosure: + this.l5r5e.item?.system?.difficulty?.startsWith("@T:") && + /\|m(in|ax)/.test(this.l5r5e.item.system.difficulty), l5r5e: isPrivate ? {} : { diff --git a/system/templates/dice/chat-roll.html b/system/templates/dice/chat-roll.html index cacac45..db015a6 100644 --- a/system/templates/dice/chat-roll.html +++ b/system/templates/dice/chat-roll.html @@ -38,10 +38,16 @@ {{/if}} {{#if l5r5e.target.uuid}} -