Skip to content

Commit

Permalink
Add support for FFD20
Browse files Browse the repository at this point in the history
  • Loading branch information
Telain authored Apr 29, 2023
1 parent 1a65128 commit bd78d2a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/lmrtfy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit bd78d2a

Please sign in to comment.