mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-19 08:20:30 +01:00
Partial fix for #671 Reaction Roll chat display to match rules
This commit is contained in:
parent
4ffa690aec
commit
208b6623b4
4 changed files with 12 additions and 5 deletions
|
|
@ -209,8 +209,10 @@ Hooks.on('chatMessage', (_, message) => {
|
|||
const difficulty = rollCommand.difficulty;
|
||||
|
||||
const target = getCommandTarget({ allowNull: true });
|
||||
const titleType = reaction ? 'DAGGERHEART.UI.Chat.dualityRoll.abilityReactionCheckTitle'
|
||||
: 'DAGGERHEART.UI.Chat.dualityRoll.abilityCheckTitle';
|
||||
const title = traitValue
|
||||
? game.i18n.format('DAGGERHEART.UI.Chat.dualityRoll.abilityCheckTitle', {
|
||||
? game.i18n.format(titleType, {
|
||||
ability: game.i18n.localize(SYSTEM.ACTOR.abilities[traitValue].label)
|
||||
})
|
||||
: game.i18n.localize('DAGGERHEART.GENERAL.duality');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue