From bd78d2ab766bae39c72cb4f0141297d7b368611e Mon Sep 17 00:00:00 2001 From: Telain Date: Sat, 29 Apr 2023 14:51:46 -0500 Subject: [PATCH 1/3] Add support for FFD20 https://github.com/Ritsuna/Foundry_FFD20 --- src/lmrtfy.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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'); From 91a2d34ac9b3b472dc482cdcb1a4d5761c912d4c Mon Sep 17 00:00:00 2001 From: Telain Date: Sat, 29 Apr 2023 14:53:12 -0500 Subject: [PATCH 2/3] Add support for FFD20 https://github.com/Ritsuna/Foundry_FFD20 --- module.json | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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 +} From aaaf86e2d0ef36eebf9c9176923fc69ce7183aed Mon Sep 17 00:00:00 2001 From: Telain Date: Sat, 29 Apr 2023 15:24:22 -0500 Subject: [PATCH 3/3] Add support for FFD20 --- src/lmrtfy.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/lmrtfy.js b/src/lmrtfy.js index 698d187..84abab7 100644 --- a/src/lmrtfy.js +++ b/src/lmrtfy.js @@ -232,16 +232,14 @@ class LMRTFY { case 'ffd20': LMRTFY.saveRollMethod = 'rollSavingThrow'; - LMRTFY.abilityRollMethod = 'rollAbility'; + 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.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.abilityAbbreviations = CONFIG.abilitiesShort; LMRTFY.modIdentifier = 'mod'; LMRTFY.abilityModifiers = LMRTFY.parseAbilityModifiers(); LMRTFY.canFailChecks = game.settings.get('lmrtfy', 'showFailButtons'); // defaulted to false due to system