Skip to content

Commit

Permalink
Add language pips for omniglot speaker
Browse files Browse the repository at this point in the history
  • Loading branch information
mclemente committed Oct 13, 2023
1 parent a5c7e75 commit eeeeb48
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/module/logic.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,9 @@ export class Polyglot {
let ownedActors = [];
if (game.user.isGM) {
ownedActors = game.actors.filter((actor) => actor.hasPlayerOwner);
for (let i = 0; i < ownedActors.length; i++) {
ownedActors[i].knownLanguages = this.getUserLanguages([ownedActors[i]])[0];
for (const actor of ownedActors) {
actor.knownLanguages = this.getUserLanguages([actor])[0];
if (actor.knownLanguages.has(this.omniglot)) actor.knownLanguages = new Set(Object.keys(this.languageProvider.languages));
}
}
const filteredUsers = this.languageProvider.filterUsers(ownedActors);
Expand Down

0 comments on commit eeeeb48

Please sign in to comment.