diff --git a/src/lmrtfy.js b/src/lmrtfy.js index 767e9cb..698d187 100644 --- a/src/lmrtfy.js +++ b/src/lmrtfy.js @@ -229,6 +229,23 @@ class LMRTFY { LMRTFY.abilityModifiers = LMRTFY.parseAbilityModifiers(); LMRTFY.canFailChecks = game.settings.get('lmrtfy', 'showFailButtons'); // defaulted to false due to system break; + + case 'ffd20': + LMRTFY.saveRollMethod = 'rollSavingThrow'; + LMRTFY.abilityRollMethod = 'rollAbility'; + LMRTFY.skillRollMethod = 'rollSkill'; + LMRTFY.abilities = CONFIG.FFD20.abilities; + LMRTFY.skills = CONFIG.FFD20.skills; + LMRTFY.saves = CONFIG.FFD20.savingThrows; + LMRTFY.normalRollEvent = { shiftKey: false, altKey: false, ctrlKey: false }; + LMRTFY.advantageRollEvent = { shiftKey: false, altKey: true, ctrlKey: false }; + LMRTFY.disadvantageRollEvent = { shiftKey: false, altKey: false, ctrlKey: true }; + LMRTFY.specialRolls = { 'initiative': true, 'deathsave': false, 'perception': false }; + LMRTFY.abilityAbbreviations = CONFIG.FFD20.abilitiesShort; + LMRTFY.modIdentifier = 'mod'; + LMRTFY.abilityModifiers = LMRTFY.parseAbilityModifiers(); + LMRTFY.canFailChecks = game.settings.get('lmrtfy', 'showFailButtons'); // defaulted to false due to system + break; default: console.error('LMRFTY | Unsupported system detected');