Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Dungeon Crawl Classics (dcc) #197

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,14 @@
"compatibility": {
"verified": "10.1.7"
}
},
{
"id": "dcc",
"type": "system",
"manifest": "https://raw.githubusercontent.com/foundryvtt-dcc/dcc/main/system.json",
"compatibility": {
"verified": "0.43.0"
}
}
]
},
Expand Down
24 changes: 24 additions & 0 deletions src/lmrtfy.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,30 @@ class LMRTFY {
LMRTFY.canFailChecks = game.settings.get('lmrtfy', 'showFailButtons'); // defaulted to false due to system
break;

case 'dcc':
// which method on the Actor class can roll the appropriate check?
LMRTFY.saveRollMethod = 'rollSavingThrow';
LMRTFY.abilityRollMethod = 'rollAbilityCheck';
LMRTFY.skillRollMethod = 'rollSkillCheck';

// where are the abilities, skills, and saves defined?
LMRTFY.abilities = CONFIG.DCC.abilities;
LMRTFY.skills = {};
LMRTFY.saves = CONFIG.DCC.saves;

// is there any special keybinding the system might expect for these kinds of rolls
LMRTFY.normalRollEvent = { shiftKey: true, altKey: false, ctrlKey: false };
LMRTFY.advantageRollEvent = { shiftKey: false, altKey: false, ctrlKey: true };

// does your system support initiative rolls or deathsaves (as dnd5e understands them)?
LMRTFY.specialRolls = { 'initiative': true, 'deathsave': false, 'perception': false };

// does you system use ability modifiers. this is for the dice and modifier buttons under custom formula
LMRTFY.abilityAbbreviations = CONFIG.DCC.abilities;
LMRTFY.modIdentifier = 'mod';
LMRTFY.abilityModifiers = LMRTFY.parseAbilityModifiers();
break;

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

Expand Down