Skip to content
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

Merged
merged 3 commits into from
May 7, 2023

Conversation

Mijago
Copy link
Owner

@Mijago Mijago commented May 4, 2023

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

@Mijago Mijago self-assigned this May 4, 2023
@abea
Copy link

abea commented May 4, 2023

The option would fit in with the one for Festival of the Lost, fwiw. Or FOL could switch to this pattern.

@Mijago
Copy link
Owner Author

Mijago commented May 4, 2023

Thank you for bringing this up. I will move fotl to this pattern.

@Mijago
Copy link
Owner Author

Mijago commented May 7, 2023

Adds the Guardian Games slot only to the class item slot:
image
image

NOT visible for other slots:
image

Copy link
Collaborator

@TheYeshir13 TheYeshir13 left a 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) )
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image
image
image

@Mijago Mijago merged commit 6fb58c2 into master May 7, 2023
@Mijago Mijago deleted the Mijago/issue134-guardian-games-classitem branch May 7, 2023 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request] Add option to not use an artificer class item or add guardian games mod slot
3 participants