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

Improvement: Jacob's Contest Numbers on Custom Scoreboard #2452

Closed

Conversation

DavidArthurCole
Copy link
Contributor

@DavidArthurCole DavidArthurCole commented Sep 2, 2024

What

Formats numbers relating to Jacob's contest with the user selected number format for the Custom Scoreboard.

Images

Old:
image

New:
image
image

Changelog Improvements

  • Improved formatting of Jacob's Contest data on Custom Scoreboard. - Daveed

@DavidArthurCole DavidArthurCole marked this pull request as ready for review September 2, 2024 22:27
Copy link
Owner

@hannibal002 hannibal002 left a comment

Choose a reason for hiding this comment

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

The logic belongs into farming contest API.

Why is the existing pattern for detecting the scoreboard lines not sufficient? Aren't we already showing all contest lines in the custom scoreboard? This feels like code duplication to me right now. I'm sure I'm missing something, please elaborate.

@hannibal002 hannibal002 added this to the Version 0.28 milestone Sep 4, 2024
@j10a1n15
Copy link
Contributor

j10a1n15 commented Sep 4, 2024

The logic belongs into farming contest API.

Why is the existing pattern for detecting the scoreboard lines not sufficient? Aren't we already showing all contest lines in the custom scoreboard? This feels like code duplication to me right now. I'm sure I'm missing something, please elaborate.

This directly adds onto the Jacobs Event Entry. We detect the Jacobs lines using .nextAfter(), not patterns. There is no code duplication on the Scoreboard End

@DavidArthurCole
Copy link
Contributor Author

The logic belongs into farming contest API.

Why is the existing pattern for detecting the scoreboard lines not sufficient? Aren't we already showing all contest lines in the custom scoreboard? This feels like code duplication to me right now. I'm sure I'm missing something, please elaborate.

As noted, this is new functionality to the custom scoreboard - it was using .nextAfter() to pull event data lines, meaning the formatting of numbers did not adhere to the custom scoreboard setting that affects things like bank, purse, copper, bits, etc.

So I'd second the challenge that this is duplicated code

@github-actions github-actions bot added the Merge Conflicts There are open merge conflicts with the beta branch. label Sep 28, 2024
Copy link

This pull request has conflicts with the base branch "beta". Please resolve those so we can test out your changes.

@github-actions github-actions bot removed the Merge Conflicts There are open merge conflicts with the beta branch. label Sep 28, 2024
Copy link

Conflicts have been resolved! 🎉

@DavidArthurCole
Copy link
Contributor Author

Closing this since Hypixel copied my PR on Alpha

  • Shortened the length of the text for the # of crops you have harvested on the scoreboard during Jacob's Contests
    • Crops will now display in shorthand form in the scoreboard, ex) 1,234,567 -> 1.23M

@DavidArthurCole DavidArthurCole deleted the JacobsCustScoreboard branch October 10, 2024 13:54
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.

3 participants