Skip to content

Commit

Permalink
Fixed bug where Ironsmith oracles could show up.
Browse files Browse the repository at this point in the history
  • Loading branch information
jendave committed Aug 29, 2024
1 parent e81ff86 commit c890d5c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## [2.3.1](https://github.com/jendave/starsmith-compendiums/commits/main) (2024-08-29)

* Fixed bug where Ironsmith oracles could be inserted into the Oracle tree unexpectedly.

## [2.3.0](https://github.com/jendave/starsmith-compendiums/commits/main) (2024-08-28)

* Updated for Sundered Isles and Datasworn 2 content.
Expand Down
6 changes: 3 additions & 3 deletions esmodules/oracles.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Hooks.once("init", async () => {
console.log('starsmith-expanded-oracles | Initializing Starsmith Expanded Oracles');
game.settings.register('starsmith-expanded-oracles', 'enableOraclesInTree', {
name: 'Enable Oracles in Default Tree',
hint: 'Enable Oracles in the character sheet tree.',
hint: 'Enable Oracles in the character sheet tree. The Starforged ruleset must also be enabled.',
scope: 'world',
config: true,
type: Boolean,
Expand All @@ -14,8 +14,8 @@ Hooks.once("init", async () => {
});

Hooks.once("ironswornOracleTreesReady", async () => {
if (game.settings.get('starsmith-expanded-oracles', 'enableOraclesInTree')) {
const starforgedOracles = CONFIG.IRONSWORN.getOracleTree('starforged')
if (game.settings.get('starsmith-expanded-oracles', 'enableOraclesInTree') && game.settings.get('foundry-ironsworn', 'ruleset-starforged')) {
const starforgedOracles = CONFIG.IRONSWORN.getOracleTree('starforged');

let derelictsIndex = starforgedOracles.children.indexOf(starforgedOracles.children.find(children => children.displayName === "Derelict Oracles"));

Expand Down

0 comments on commit c890d5c

Please sign in to comment.