From 69e5f6d44093e8153cfc4f36d53d46eeb3b8e953 Mon Sep 17 00:00:00 2001 From: Stephen Faure Date: Tue, 22 Feb 2022 22:01:24 +0100 Subject: [PATCH] Enable support for "Old School Essentials" --- module.json | 3 ++- src/lmrtfy.js | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/module.json b/module.json index f421949..e7619f3 100644 --- a/module.json +++ b/module.json @@ -22,7 +22,8 @@ "sw5e", "cof", "coc", - "demonlord" + "demonlord", + "ose" ], "languages": [ { diff --git a/src/lmrtfy.js b/src/lmrtfy.js index 42df149..e1bb5bf 100644 --- a/src/lmrtfy.js +++ b/src/lmrtfy.js @@ -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');