Skip to content

Commit

Permalink
Fix bug where Character sheets without an override would be incorrect…
Browse files Browse the repository at this point in the history
…ly recognized as Mook sheets
  • Loading branch information
aolkin committed Aug 28, 2024
1 parent 364f550 commit 61eab01
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
v0.3.3
=========

- Fix a bug in v0.3.2 where Character sheets would be incorrectly
recognized as Mook sheets when no override was present.

v0.3.2
=========

Expand Down
2 changes: 1 addition & 1 deletion scripts/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Hooks.on('getActorSheetHeaderButtons', getActorSheetHeaderButtons)
function isUsingMookSheet(actor) {
console.log(actor.id, actor.flags.core);
const currentSheetClass = actor?.flags?.core?.sheetClass ||
game.settings.get("core", "sheetClasses")?.Actor?.mook;
game.settings.get("core", "sheetClasses")?.Actor?.[actor.type];
return currentSheetClass === 'cyberpunk-red-core.CPRMookActorSheet';
}

Expand Down

0 comments on commit 61eab01

Please sign in to comment.