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

Generate d2-season-info.ts && better watermark detection #383

Merged
merged 1 commit into from
Jun 28, 2022

Conversation

delphiactual
Copy link
Collaborator

@delphiactual delphiactual commented Jun 27, 2022

Closes #360

To-Do:

  • remove quotes from seasonNumber in d2-season-info.ts
  • calculate pinnacleCap from powerCaps instead of Lookup table
  • stable sort watermark-to-season.json

This should make less human interaction necessary for both d2-season-info and watermark detection.

D2CalculatedSeason is now based upon the largest season number without [Redacted] in the name, instead of how close to a season start it is... This should prevent erroneous seasons being applied to items completely.

seasonal watermarks are completely generated from the manifest without the need for having a secondary source of truth... This was accomplished by checking against the season pass reward items, then against shaders, and finally against armor if any watermarks remain in the list of all watermarks.

event watermarks are still generated by using a manually curated list of shaders.

event watermarks are now generated from shaders for events using the stack uniquelabel which contains event descriptors.

@DestinyItemManager DestinyItemManager deleted a comment from lgtm-com bot Jun 27, 2022
@DestinyItemManager DestinyItemManager deleted a comment from lgtm-com bot Jun 27, 2022
@DestinyItemManager DestinyItemManager deleted a comment from github-actions bot Jun 27, 2022
@DestinyItemManager DestinyItemManager deleted a comment from github-actions bot Jun 27, 2022
@delphiactual delphiactual changed the title Generate d2 season info Generate d2-season-info.ts Jun 27, 2022
@DestinyItemManager DestinyItemManager deleted a comment from github-actions bot Jun 27, 2022
@delphiactual delphiactual changed the title Generate d2-season-info.ts Generate d2-season-info.ts && better watermark detection Jun 27, 2022
@delphiactual
Copy link
Collaborator Author

delphiactual commented Jun 27, 2022

This will require writing a new D2CalculatedSeason in DIM. We can either go the way I did here based on highest seasonNumber that is not [REDACTED] or based upon D2SeasonInfo.releaseDate && D2SeasonInfo.resetTime

identify watermarks via seasonpass rewards

fix typo in override

dropped this

sort watermark-to-season.json semi-stable

fixup

shaders ftw

fix erroneously marked season 15 items

updates

updates

remove "" from keys
generate-data
D2CalculatedSeason by un-redactedness

user powerCaps where available

fixup

.

comments and better var naming

remove useless conditionals ...

generate-watermark-info cleanup
add comments, update variable names - generate-season-info
generate event watermarks based off of event shaders
remove stray debug comment
modularize
@delphiactual delphiactual merged commit 33371c2 into master Jun 28, 2022
@delphiactual delphiactual deleted the generate-d2-season-info branch June 28, 2022 17: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
1 participant