Skip to content

Commit

Permalink
Merge pull request #389 from patengelbert/master
Browse files Browse the repository at this point in the history
Fix literacy support to WFRP4e causing all pages to be scrambled
  • Loading branch information
mclemente authored Sep 9, 2024
2 parents 3ae33ff + d5a4b7e commit 911d215
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module/providers/wfrp4e.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export default class wfrp4eLanguageProvider extends LanguageProvider {
let knownLanguages = new Set();
let literateLanguages = new Set();
const readWrite = game.settings.get("polyglot", "ReadWrite");
const isLiterate = actor.items.find((item) => item.name === readWrite && item.type === "talent").length > 0;
const isLiterate = actor.items.find((item) => item.name === readWrite && item.type === "talent") != null;
let myRegex = new RegExp(`${game.settings.get("polyglot", "LanguageRegex")}\\s*\\((.+)\\)`, "i");
for (let item of actor.items) {
// adding only the descriptive language name, not "Language (XYZ)"
Expand Down

0 comments on commit 911d215

Please sign in to comment.