mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 11:41:08 +01:00
Added AppearanceMenu allowing modification of DiceSoNice Duality presets
This commit is contained in:
parent
e135c4134e
commit
565d3d9d88
13 changed files with 542 additions and 281 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { diceSoNicePresets } from '../config/generalConfig.mjs';
|
||||
import { diceSoNicePresets, getDiceSoNicePresets } from '../config/generalConfig.mjs';
|
||||
|
||||
export const loadCompendiumOptions = async compendiums => {
|
||||
const compendiumValues = [];
|
||||
|
|
@ -122,6 +122,7 @@ export const getCommandTarget = () => {
|
|||
};
|
||||
|
||||
export const setDiceSoNiceForDualityRoll = (rollResult, advantage, disadvantage) => {
|
||||
const diceSoNicePresets = getDiceSoNicePresets();
|
||||
rollResult.dice[0].options.appearance = diceSoNicePresets.hope;
|
||||
rollResult.dice[1].options.appearance = diceSoNicePresets.fear;
|
||||
if (advantage) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue