Skip to content

Commit

Permalink
Merge pull request #149 from freohr/feature/add-ose-support
Browse files Browse the repository at this point in the history
Enable support for "Old School Essentials"
  • Loading branch information
Varriount authored Feb 23, 2022
2 parents 33466a5 + 69e5f6d commit c5b456b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
3 changes: 2 additions & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"sw5e",
"cof",
"coc",
"demonlord"
"demonlord",
"ose"
],
"languages": [
{
Expand Down
18 changes: 18 additions & 0 deletions src/lmrtfy.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,24 @@ class LMRTFY {
LMRTFY.abilityModifiers = {};
break;

case 'ose':
LMRTFY.saveRollMethod = 'rollSave';
LMRTFY.abilityRollMethod = 'rollCheck';
LMRTFY.skillRollMethod = 'rollExploration';
LMRTFY.abilities = CONFIG.OSE.scores;
LMRTFY.abilityAbbreviations = CONFIG.OSE.scores_short;
LMRTFY.skills = CONFIG.OSE.exploration_skills;
LMRTFY.saves = CONFIG.OSE.saves_long;
LMRTFY.normalRollEvent = {};
LMRTFY.advantageRollEvent = {};
LMRTFY.disadvantageRollEvent = {};
LMRTFY.modIdentifier = 'mod';
LMRTFY.abilityModifiers = LMRTFY.parseAbilityModifiers();
LMRTFY.specialRolls = {};
LMRTFY.modIdentifier = 'modifier';
LMRTFY.abilityModifiers = {};
break;

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

Expand Down

0 comments on commit c5b456b

Please sign in to comment.