Added AppearanceMenu allowing modification of DiceSoNice Duality presets

This commit is contained in:
WBHarry 2025-05-27 17:35:53 +02:00
parent e135c4134e
commit 565d3d9d88
13 changed files with 542 additions and 281 deletions

View file

@ -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) {