Skip to content

Commit

Permalink
System support: Pathfinder 1 (#72)
Browse files Browse the repository at this point in the history
* Update lmrtfy.js with pf1 support

* Allow scrolling for pf1e

The GM window didn't allow for scrolling which cause skills to overflow and not be visible.
Therefor look up for pf1 window and add a max-height (this is copied from the dnd3.5 change)

* Add support for pf1
  • Loading branch information
ManaHime authored Mar 20, 2021
1 parent 80f9887 commit 2224923
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
6 changes: 5 additions & 1 deletion css/lmrtfy.css
Original file line number Diff line number Diff line change
Expand Up @@ -313,4 +313,8 @@ form .form-group .lmrtfy-skill-checks {

.d35ecustom .lmrtfy fieldset {
border: none;
}
}

.system-pf1 form .form-group .lmrtfy-skill-checks {
max-height: 600px;
}
1 change: 1 addition & 0 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"systems": [
"dnd5e",
"dnd5eJP",
"pf1",
"pf2e",
"D35E",
"sw5e"
Expand Down
13 changes: 13 additions & 0 deletions src/lmrtfy.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,19 @@ class LMRTFY {
LMRTFY.specialRolls = { 'initiative': true, 'deathsave': true };
break;

case 'pf1':
LMRTFY.saveRollMethod = 'rollSave';
LMRTFY.abilityRollMethod = 'rollAbility';
LMRTFY.skillRollMethod = 'rollSkill';
LMRTFY.abilities = CONFIG.PF1.abilities;
LMRTFY.skills = CONFIG.PF1.skills;
LMRTFY.saves = CONFIG.PF1.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': true };
break;

case 'pf2e':
LMRTFY.saveRollMethod = 'rollSave';
LMRTFY.abilityRollMethod = 'rollAbility';
Expand Down

0 comments on commit 2224923

Please sign in to comment.