Skip to content

Commit

Permalink
Merge pull request #181 from Telain/master
Browse files Browse the repository at this point in the history
Add Support for FFD20
  • Loading branch information
Varriount authored Apr 30, 2023
2 parents ca7dc0e + aaaf86e commit 024c88b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
13 changes: 11 additions & 2 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@
"demonlord",
"ose",
"foundry-chromatic-dungeons",
"degenesis"
"degenesis",
"ffd20"
],
"relationships": {
"systems": [
Expand Down Expand Up @@ -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"
}
}
]
},
Expand All @@ -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"
}
}
15 changes: 15 additions & 0 deletions src/lmrtfy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 024c88b

Please sign in to comment.