feat: localize roll flavor text for each user individually

This commit is contained in:
Johannes Loher 2021-09-19 12:23:52 +02:00
parent ab120a4d33
commit b679eedfc1
8 changed files with 389 additions and 339 deletions

View file

@ -300,7 +300,8 @@ export class DS4Actor extends Actor {
rollMode: getGame().settings.get("core", "rollMode"),
maximumCoupResult: this.data.data.rolling.maximumCoupResult,
minimumFumbleResult: this.data.data.rolling.minimumFumbleResult,
flavor: getGame().i18n.format("DS4.ActorCheckFlavor", { actor: this.name, check: DS4.i18n.checks[check] }),
flavor: "DS4.ActorCheckFlavor",
flavorData: { actor: this.name, check: DS4.i18nKeys.checks[check] },
});
}