Skip to content

Commit

Permalink
patch: remove proficiency modifier support
Browse files Browse the repository at this point in the history
  • Loading branch information
surged20 committed Jun 6, 2024
1 parent d9b21f1 commit f16c6d4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 23 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 0 additions & 11 deletions src/module/patch.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
10 changes: 0 additions & 10 deletions src/templates/actors/wildjammer.html
Original file line number Diff line number Diff line change
Expand Up @@ -113,16 +113,6 @@ <h4>Mode</h4>
</label>
</div>
</div>
{{#if isNPC}}
<div class="counter flexrow prof">
<h4>{{localize 'DND5E.Proficiency'}}</h4>
<div class="counter-value">
<input class="wjmais-prof" type="number"
name="system.attributes.prof"
data-dtype="Number" value="{{system.attributes.prof}}">
</div>
</div>
{{/if}}
</div>
{{/if}}
<div class="counters">
Expand Down

0 comments on commit f16c6d4

Please sign in to comment.