Skip to content

Commit

Permalink
Linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Veilza committed Aug 25, 2024
1 parent 8f80648 commit 91212a7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions system/actor/actor.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* global Actor, game, foundry */

import { _onPlayerUpdate } from './scripts/ownership-updates.js'
import { _onGroupUpdate } from './scripts/ownership-updates.js'
import { _onPlayerUpdate, _onGroupUpdate } from './scripts/ownership-updates.js'

/**
* Extend the base ActorSheet document and put all our base functionality here
Expand Down
8 changes: 4 additions & 4 deletions system/actor/scripts/ownership-updates.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ export const _onPlayerUpdate = async function (actor, data) {

// If this includes a change to ownership, set overrideOwnership
if (data?.ownership?.default) {
// Set the overrideOwnership to false if the default is anything but limited
// Set to false when ownership default is limited
playerUpdates.flags.overrideOwnership = data.ownership.default !== CONST.DOCUMENT_OWNERSHIP_LEVELS.LIMITED
// Set the overrideOwnership to false if the default is anything but limited
// Set to false when ownership default is limited
playerUpdates.flags.overrideOwnership = data.ownership.default !== CONST.DOCUMENT_OWNERSHIP_LEVELS.LIMITED
}

// If we're allowed to override ownership or it's not already set, set default ownership to limited
Expand Down Expand Up @@ -69,7 +69,7 @@ export const _onGroupUpdate = async function (group, data) {

// If the override flag is true or not defined AND the ownership isn't already set to Limited
// Then update the ownership for this player to Limited
if (overrideFlag === undefined || overrideFlag === true && member.ownership[key] !== CONST.DOCUMENT_OWNERSHIP_LEVELS.LIMITED) {
if ((overrideFlag === undefined || overrideFlag === true) && (member.ownership[key] !== CONST.DOCUMENT_OWNERSHIP_LEVELS.LIMITED)) {
console.log(`Setting ownership for ${user.name} to limited`)
groupUpdates.ownership[key] = CONST.DOCUMENT_OWNERSHIP_LEVELS.LIMITED
}
Expand Down
2 changes: 1 addition & 1 deletion system/item/item-sheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export class WoDItemSheet extends ItemSheet {
merit: 'WOD5E.ItemsList.Merit',
flaw: 'WOD5E.ItemsList.Flaw',
background: 'WOD5E.ItemsList.Background',
boon: 'WOD5E.ItemsList.Boon',
boon: 'WOD5E.ItemsList.Boon'
}

return data
Expand Down

0 comments on commit 91212a7

Please sign in to comment.