mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
fix language display and attribute roll bug (#435)
This commit is contained in:
parent
187a0dc090
commit
ff7927896a
2 changed files with 9 additions and 7 deletions
|
|
@ -43,7 +43,7 @@ export default class DHAppearanceSettings extends HandlebarsApplicationMixin(App
|
||||||
{ id: 'hope', label: 'DAGGERHEART.GENERAL.hope' },
|
{ id: 'hope', label: 'DAGGERHEART.GENERAL.hope' },
|
||||||
{ id: 'fear', label: 'DAGGERHEART.GENERAL.fear' },
|
{ id: 'fear', label: 'DAGGERHEART.GENERAL.fear' },
|
||||||
{ id: 'advantage', label: 'DAGGERHEART.GENERAL.Advantage.full' },
|
{ id: 'advantage', label: 'DAGGERHEART.GENERAL.Advantage.full' },
|
||||||
{ id: 'disadvantage', label: 'DAGGERHEART.GENERAL.Advantage.full' }
|
{ id: 'disadvantage', label: 'DAGGERHEART.GENERAL.Disadvantage.full' }
|
||||||
],
|
],
|
||||||
initial: 'hope'
|
initial: 'hope'
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -53,12 +53,14 @@ export const getCommandTarget = () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
export const setDiceSoNiceForDualityRoll = async (rollResult, advantageState, hopeFaces, fearFaces, advantageFaces) => {
|
export const setDiceSoNiceForDualityRoll = async (rollResult, advantageState, hopeFaces, fearFaces, advantageFaces) => {
|
||||||
const diceSoNicePresets = await getDiceSoNicePresets(hopeFaces, fearFaces, advantageFaces, advantageFaces);
|
if (game.modules.get('dice-so-nice')?.active) {
|
||||||
rollResult.dice[0].options = diceSoNicePresets.hope;
|
const diceSoNicePresets = await getDiceSoNicePresets(hopeFaces, fearFaces, advantageFaces, advantageFaces);
|
||||||
rollResult.dice[1].options = diceSoNicePresets.fear;
|
rollResult.dice[0].options = diceSoNicePresets.hope;
|
||||||
if (rollResult.dice[2] && advantageState) {
|
rollResult.dice[1].options = diceSoNicePresets.fear;
|
||||||
rollResult.dice[2].options =
|
if (rollResult.dice[2] && advantageState) {
|
||||||
advantageState === 1 ? diceSoNicePresets.advantage : diceSoNicePresets.disadvantage;
|
rollResult.dice[2].options =
|
||||||
|
advantageState === 1 ? diceSoNicePresets.advantage : diceSoNicePresets.disadvantage;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue