diff --git a/module.json b/module.json index 10127ff..343353c 100644 --- a/module.json +++ b/module.json @@ -84,7 +84,8 @@ "demonlord", "ose", "foundry-chromatic-dungeons", - "degenesis" + "degenesis", + "ffd20" ], "relationships": { "systems": [ @@ -175,6 +176,14 @@ "compatibility": { "verified": "0.5.1" } + }, + { + "id": "ffd20", + "type": "system", + "manifest": "https://github.com/Ritsuna/Foundry_FFD20/blob/master/system.json", + "compatibility": { + "verified": "10.1.7" + } } ] }, @@ -184,4 +193,4 @@ "download": "https://github.com/League-of-Foundry-Developers/fvtt-module-lmrtfy/releases/download/v3.00/module.zip", "changelog": "https://github.com/League-of-Foundry-Developers/fvtt-module-lmrtfy/releases", "bugs": "https://github.com/League-of-Foundry-Developers/fvtt-module-lmrtfy/issues" -} \ No newline at end of file +} diff --git a/src/lmrtfy.js b/src/lmrtfy.js index 767e9cb..84abab7 100644 --- a/src/lmrtfy.js +++ b/src/lmrtfy.js @@ -229,6 +229,21 @@ 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 = 'rollAbilityTest'; + 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.specialRolls = { 'initiative': true, 'deathsave': false, 'perception': false }; + LMRTFY.abilityAbbreviations = CONFIG.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');