mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-18 07:59:03 +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');
|
||||
|
|
|
|||
|
|
@ -2265,7 +2265,8 @@
|
|||
"title": "Domain Card"
|
||||
},
|
||||
"dualityRoll": {
|
||||
"abilityCheckTitle": "{ability} Check"
|
||||
"abilityCheckTitle": "{ability} Check",
|
||||
"abilityReactionCheckTitle": "{ability} Reaction Check"
|
||||
},
|
||||
"featureTitle": "Class Feature",
|
||||
"healingRoll": {
|
||||
|
|
|
|||
|
|
@ -337,7 +337,7 @@ export default class DHBaseAction extends ActionMixin(foundry.abstract.DataModel
|
|||
if (!actor) return;
|
||||
const title = actor.isNPC
|
||||
? game.i18n.localize('DAGGERHEART.GENERAL.reactionRoll')
|
||||
: game.i18n.format('DAGGERHEART.UI.Chat.dualityRoll.abilityCheckTitle', {
|
||||
: game.i18n.format('DAGGERHEART.UI.Chat.dualityRoll.abilityReactionCheckTitle', {
|
||||
ability: game.i18n.localize(abilities[this.save.trait]?.label)
|
||||
});
|
||||
return actor.diceRoll({
|
||||
|
|
|
|||
|
|
@ -6,8 +6,12 @@
|
|||
{{#if roll.isCritical}}
|
||||
<span>{{localize "DAGGERHEART.GENERAL.criticalShort"}}</span>
|
||||
{{else}}
|
||||
{{#if roll.result}}
|
||||
<span>{{localize "DAGGERHEART.GENERAL.withThing" thing=roll.result.label}}</span>
|
||||
{{#if (eq roll.type "reaction")}}
|
||||
{{!-- Display no hope/fear as per rules --}}
|
||||
{{else}}
|
||||
{{#if roll.result}}
|
||||
<span>{{localize "DAGGERHEART.GENERAL.withThing" thing=roll.result.label}}</span>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</span>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue