Added chat distinction for roll using target (@T:) with min or max for non disclose the target to players

This commit is contained in:
Vlyan
2022-07-31 15:29:12 +02:00
parent f8e45c1e32
commit ad427d99e4
7 changed files with 19 additions and 5 deletions

View File

@@ -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
? {}
: {