From f16c6d4323d701e170f456da1ff63af7d7907176 Mon Sep 17 00:00:00 2001 From: Surge Date: Thu, 6 Jun 2024 07:12:37 -0400 Subject: [PATCH] patch: remove proficiency modifier support --- README.md | 4 ++-- src/module/patch.js | 11 ----------- src/templates/actors/wildjammer.html | 10 ---------- 3 files changed, 2 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index aecd554..7169a02 100644 --- a/README.md +++ b/README.md @@ -30,9 +30,9 @@ This Foundry VTT module extends the dnd5e system with the following: - Bridge crew role management - Fighter-Helmsman/Gunner and Helmsman character sheets inherit ship weapons/equipment when entering the appropriate role. - NPC Mode - - Exposes configurable abilities and proficiency modifier + - Exposes configurable abilities - All items, ability checks, and saving throws rollable from Wildjammer sheet - - Attacks may have hardcoded bonuses or use the ability/proficiency modifiers. + - Attacks may have hardcoded bonuses or use the ability modifiers. - Cone of movement measured template toggle using key bind - Token resource bar support for Hull Points and Bulwark Points - Ship class scaled Collide and Ram attacks with midi-qol and Ready Set Roll support diff --git a/src/module/patch.js b/src/module/patch.js index 763462a..3df7301 100644 --- a/src/module/patch.js +++ b/src/module/patch.js @@ -126,20 +126,9 @@ function patchRollData() { ); } -function patchProficiency() { - libWrapper.register( - "wjmais", - "CONFIG.Actor.documentClass.prototype._prepareVehicleData", - function (wrapped, ...args) { - if (this.flags?.wjmais?.npc) wrapped(...args); - }, - "MIXED" - ); -} export function applyPatches() { patchCompendiumImport(); patchResourceBars(); patchRollData(); - patchProficiency(); } diff --git a/src/templates/actors/wildjammer.html b/src/templates/actors/wildjammer.html index 9c7eac3..d41ca62 100644 --- a/src/templates/actors/wildjammer.html +++ b/src/templates/actors/wildjammer.html @@ -113,16 +113,6 @@

Mode

- {{#if isNPC}} -
-

{{localize 'DND5E.Proficiency'}}

-
- -
-
- {{/if}} {{/if}}