Skip to content

Commit

Permalink
Disabling special perception on pf1e (#73)
Browse files Browse the repository at this point in the history
* Disabling special perception on pf1e

The special perception doesn't use the correct info on pf1e, so disabling while I figure out how to make it better.

* Add init rolls to combat tracker for non 5e system

* Fix a typo that broke pf1's saving throw
  • Loading branch information
ManaHime authored Mar 20, 2021
1 parent 0a212d7 commit bec20b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/lmrtfy.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class LMRTFY {
break;

case 'pf1':
LMRTFY.saveRollMethod = 'rollSave';
LMRTFY.saveRollMethod = 'rollSavingThrow';
LMRTFY.abilityRollMethod = 'rollAbility';
LMRTFY.skillRollMethod = 'rollSkill';
LMRTFY.abilities = CONFIG.PF1.abilities;
Expand All @@ -58,7 +58,7 @@ class LMRTFY {
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 };
LMRTFY.specialRolls = { 'initiative': true, 'deathsave': false, 'perception': false };
break;

case 'pf2e':
Expand Down
2 changes: 1 addition & 1 deletion src/roller.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ class LMRTFYRoller extends Application {
}
_onInitiative(event) {
event.preventDefault();
if(game.system.id == "dnd5e") {
if(this.data.initiative) {
for (let actor of this.actors) {
actor.rollInitiative();
}
Expand Down

0 comments on commit bec20b6

Please sign in to comment.