Skip to content

Commit 9dc98df

Browse files
authored
Merge pull request #1053 from ben/all-oracle-controls
Allow more scene buttons
2 parents d1851d3 + 815b8f7 commit 9dc98df

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Next Release
44

55
- Fix scene sidebar buttons in v13 ([#1048](https://github.com/ben/foundry-ironsworn/pull/1048))
6+
- Enable all ruleset buttons in the sidebar ([#1053](https://github.com/ben/foundry-ironsworn/pull/1053))
67

78
## 1.25.0
89

src/module/features/sceneButtons.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -190,14 +190,16 @@ export function activateSceneButtonListeners() {
190190
}
191191
addTool(control, oracleButton)
192192

193-
// Apply updates in order. If you've got IS and SI both enabled, too bad, you're in the isles
194-
if (IronswornSettings.enabledRulesets.includes('classic'))
193+
// Apply updates in order for all enabled rulesets
194+
if (IronswornSettings.enabledRulesets.includes('classic')) {
195195
ironswornifyControl(control)
196-
// HOWEVER, if you've got both SF and SI enabled, you're only in the isles
197-
if (IronswornSettings.enabledRulesets.includes('sundered_isles'))
198-
sunderedIslifyControl(control)
199-
else if (IronswornSettings.enabledRulesets.includes('starforged'))
196+
}
197+
if (IronswornSettings.enabledRulesets.includes('starforged')) {
200198
starforgifyControl(control)
199+
}
200+
if (IronswornSettings.enabledRulesets.includes('sundered_isles')) {
201+
sunderedIslifyControl(control)
202+
}
201203

202204
if (controls[0]) {
203205
controls.push(control)

0 commit comments

Comments
 (0)