-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add guardian games slot (only to class item) #135
Conversation
The option would fit in with the one for Festival of the Lost, fwiw. Or FOL could switch to this pattern. |
Thank you for bringing this up. I will move fotl to this pattern. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good :) Ready for merge
Same Logic as before but does not search for the slot instead returns the specific items (for each class)
Can be turned off which is good
@@ -418,6 +418,10 @@ export class BungieApiService { | |||
|
|||
|
|||
private getArmorPerk(v: DestinyInventoryItemDefinition): ArmorPerkOrSlot { | |||
// Guardian Games | |||
if (environment.featureFlags.enableGuardianGamesFeatures && ( v.hash === 1013401891 || v.hash === 366019830 || v.hash == 537041732) ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I basically add a new category "GuardianGamesClassItem" and show it in the "class item" slot.
I can toggle it via an environment flag, so we can easily disable it (or remove it) when we do not need it anymore.
This felt nicer for the end user than adding an extra
advanced setting
.for #134