Commit ddc0106
authored
feat(options): add flag to disable challenge-unassociated items (#608)
<!-- Thanks for contributing to Peacock! Here's a bit of a template to
help make sure everything relevant is covered. -->
## Scope
Adds an option flag `enableIsolatedItems`, paired with
`enableMasteryProgression` one. When both are set to `true`, the
inventory will function as before. When this flag is `false`, the
inventory will not handle items with no unlocking approaches, like the
official server, which is also the default option. Disabling mastery
progression makes this flag of no use. It can be one of default options
of Peacock imo.
Meanwhile, takes Banker Pack into Peacock's consideration.
## Test Plan
Can "remove" newest items, and when flag's changed to `false` they come
back again.
## Checklist
<!--
Just a few reminders to make sure everything is perfect. You can place
an "X" in the boxes to tick them off.
If you have not completed one of the steps below, you can create the
pull request as a draft, and then check off the items as you go.
When you have completed the checklist, press the "Ready for review"
button.
-->
- [x] I have run Prettier to reformat any changed files
- [x] I have verified my changes work2 files changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
58 | 64 | | |
59 | 65 | | |
60 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
| |||
197 | 198 | | |
198 | 199 | | |
199 | 200 | | |
200 | | - | |
| 201 | + | |
201 | 202 | | |
202 | | - | |
| 203 | + | |
203 | 204 | | |
204 | 205 | | |
205 | 206 | | |
| |||
0 commit comments