Skip to content

Commit 024c88b

Browse files
authored
Merge pull request #181 from Telain/master
Add Support for FFD20
2 parents ca7dc0e + aaaf86e commit 024c88b

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

module.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@
8484
"demonlord",
8585
"ose",
8686
"foundry-chromatic-dungeons",
87-
"degenesis"
87+
"degenesis",
88+
"ffd20"
8889
],
8990
"relationships": {
9091
"systems": [
@@ -175,6 +176,14 @@
175176
"compatibility": {
176177
"verified": "0.5.1"
177178
}
179+
},
180+
{
181+
"id": "ffd20",
182+
"type": "system",
183+
"manifest": "https://github.com/Ritsuna/Foundry_FFD20/blob/master/system.json",
184+
"compatibility": {
185+
"verified": "10.1.7"
186+
}
178187
}
179188
]
180189
},
@@ -184,4 +193,4 @@
184193
"download": "https://github.com/League-of-Foundry-Developers/fvtt-module-lmrtfy/releases/download/v3.00/module.zip",
185194
"changelog": "https://github.com/League-of-Foundry-Developers/fvtt-module-lmrtfy/releases",
186195
"bugs": "https://github.com/League-of-Foundry-Developers/fvtt-module-lmrtfy/issues"
187-
}
196+
}

src/lmrtfy.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,21 @@ class LMRTFY {
229229
LMRTFY.abilityModifiers = LMRTFY.parseAbilityModifiers();
230230
LMRTFY.canFailChecks = game.settings.get('lmrtfy', 'showFailButtons'); // defaulted to false due to system
231231
break;
232+
233+
case 'ffd20':
234+
LMRTFY.saveRollMethod = 'rollSavingThrow';
235+
LMRTFY.abilityRollMethod = 'rollAbilityTest';
236+
LMRTFY.skillRollMethod = 'rollSkill';
237+
LMRTFY.abilities = CONFIG.FFD20.abilities;
238+
LMRTFY.skills = CONFIG.FFD20.skills;
239+
LMRTFY.saves = CONFIG.FFD20.savingThrows;
240+
LMRTFY.normalRollEvent = { shiftKey: false, altKey: false, ctrlKey: false };
241+
LMRTFY.specialRolls = { 'initiative': true, 'deathsave': false, 'perception': false };
242+
LMRTFY.abilityAbbreviations = CONFIG.abilitiesShort;
243+
LMRTFY.modIdentifier = 'mod';
244+
LMRTFY.abilityModifiers = LMRTFY.parseAbilityModifiers();
245+
LMRTFY.canFailChecks = game.settings.get('lmrtfy', 'showFailButtons'); // defaulted to false due to system
246+
break;
232247

233248
default:
234249
console.error('LMRFTY | Unsupported system detected');

0 commit comments

Comments
 (0)