-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #235 from RabidOwlbear/main
party sheet/container fix
- Loading branch information
Showing
4 changed files
with
135 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
export class OseParty { | ||
static get currentParty() { | ||
const characters = game.actors.filter( | ||
(act) => | ||
act.data.type === "character" && | ||
act.data.flags.ose && | ||
act.data.flags.ose.party === true); | ||
|
||
const v10 = isNewerVersion(game.version, "10.264"); | ||
const systemName = game.system.id == 'ose' ?game.system.id : 'ose-dev' | ||
const characters = v10 ? | ||
game.actors.filter( | ||
(act) => | ||
act.type === "character" && | ||
act.flags[systemName] && | ||
act.flags[systemName].party === true) : | ||
game.actors.filter( | ||
(act) => | ||
act.data.type === "character" && | ||
act.data.flags[systemName] && | ||
act.data.flags[systemName].party === true); | ||
console.log(characters) | ||
return characters; | ||
} | ||
} |