Skip to content

Add totalRolls to iArtifact, UI and editor - #3055

Draft
failchon wants to merge 2 commits into
frzyc:masterfrom
failchon:failchon/gi/total-rolls-on-artis
Draft

Add totalRolls to iArtifact, UI and editor#3055
failchon wants to merge 2 commits into
frzyc:masterfrom
failchon:failchon/gi/total-rolls-on-artis

Conversation

@failchon

Copy link
Copy Markdown
Contributor

Describe your changes

Issue or discord link

Testing/validation

Checklist before requesting a review (leave this PR as draft if any part of this list is not done.)

  • I have commented my code in hard-to understand areas.
  • I have made corresponding changes to README or wiki.
  • For front-end changes, I have updated the corresponding English translations.
  • I have run yarn run mini-ci locally to validate format and lint.
  • If I have added a new library or app, I have updated the deployment scripts to ignore changes as needed

@github-actions

github-actions Bot commented Sep 18, 2025

Copy link
Copy Markdown
Contributor

[frontend] [Thu Sep 18 13:15:33 UTC 2025] - Deployed 0577e48 to https://genshin-optimizer-prs.github.io/pr/3055/frontend (Takes 3-5 minutes after this completes to be available)

[frontend] [Sat Sep 20 00:03:40 UTC 2025] - Deployed 3339487 to https://genshin-optimizer-prs.github.io/pr/3055/frontend (Takes 3-5 minutes after this completes to be available)

Comment thread libs/gi/db/src/Database/DataManagers/ArtifactDataManager.ts Outdated
Comment thread libs/gi/db/src/Database/DataManagers/ArtifactDataManager.ts Outdated
Comment thread libs/gi/db/src/Database/DataManagers/ArtifactDataManager.ts
Comment thread libs/gi/ui/src/components/artifact/editor/index.tsx Outdated
Comment thread libs/gi/ui/src/components/artifact/ArtifactCard.tsx Outdated
? allElementWithPhyKeys.find((ele) => artifact.mainStatKey.includes(ele))
: undefined
const color = artifact ? (element ?? 'success') : 'primary'
const guessedRolls = cArtifact?.substats.reduce(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Not sure if it is easily doable, but what I was hoping for is if the rolls we calculated in ArtifactDataManager.ts only have one combination (e.g. it can only be an 8 roll artifact), this would be considered non-guessed and reflect properly in the UI and data representation. For example, I added this artifact, and there is 0 way for this to be anytthing but 9 total rolls, so it shouldn't be guessed anymore

Image

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.

2 participants