diff --git a/module.json b/module.json index 343353c..72fd61a 100644 --- a/module.json +++ b/module.json @@ -184,6 +184,14 @@ "compatibility": { "verified": "10.1.7" } + }, + { + "id": "dcc", + "type": "system", + "manifest": "https://raw.githubusercontent.com/foundryvtt-dcc/dcc/main/system.json", + "compatibility": { + "verified": "0.43.0" + } } ] }, diff --git a/src/lmrtfy.js b/src/lmrtfy.js index 178ff76..baf7100 100644 --- a/src/lmrtfy.js +++ b/src/lmrtfy.js @@ -254,6 +254,30 @@ class LMRTFY { LMRTFY.canFailChecks = game.settings.get('lmrtfy', 'showFailButtons'); // defaulted to false due to system break; + case 'dcc': + // which method on the Actor class can roll the appropriate check? + LMRTFY.saveRollMethod = 'rollSavingThrow'; + LMRTFY.abilityRollMethod = 'rollAbilityCheck'; + LMRTFY.skillRollMethod = 'rollSkillCheck'; + + // where are the abilities, skills, and saves defined? + LMRTFY.abilities = CONFIG.DCC.abilities; + LMRTFY.skills = {}; + LMRTFY.saves = CONFIG.DCC.saves; + + // is there any special keybinding the system might expect for these kinds of rolls + LMRTFY.normalRollEvent = { shiftKey: true, altKey: false, ctrlKey: false }; + LMRTFY.advantageRollEvent = { shiftKey: false, altKey: false, ctrlKey: true }; + + // does your system support initiative rolls or deathsaves (as dnd5e understands them)? + LMRTFY.specialRolls = { 'initiative': true, 'deathsave': false, 'perception': false }; + + // does you system use ability modifiers. this is for the dice and modifier buttons under custom formula + LMRTFY.abilityAbbreviations = CONFIG.DCC.abilities; + LMRTFY.modIdentifier = 'mod'; + LMRTFY.abilityModifiers = LMRTFY.parseAbilityModifiers(); + break; + default: console.error('LMRFTY | Unsupported system detected');