Skip to content

Conversation

Emirlol
Copy link
Collaborator

@Emirlol Emirlol commented Jan 17, 2024

The score shown in the scoreboard is updated very late and is never equal to what score you would get if you went and completed the dungeon at that moment. That goes against its purpose and makes it harder to judge when the score is enough for S or S+. This PR is for calculating score client-side with the info gathered from various places, allowing the player to see when the score is enough.

I'm mostly confident in the calculation's accuracy, but I'm not very sure if I've handled mimics right so do let me know if you see any mistakes or any alternative ways to do it.

I've also added score to the HUD with customizable location & size, but it's a bit messy as I simply patched the dungeon map config with the relevant things. It could be improved further, especially if there are plans to add more HUD elements.

(sorry for creating re-creating the same pull request as I'm a bit of a newb in the matters of git. I had to change the branch)

@kevinthegreat1 kevinthegreat1 added the reviews needed This PR needs reviews label Jan 17, 2024
@AzureAaron AzureAaron added changes requested This PR need changes and removed reviews needed This PR needs reviews labels Jan 18, 2024
@kevinthegreat1 kevinthegreat1 added reviews needed This PR needs reviews and removed changes requested This PR need changes labels Jan 18, 2024
@AzureAaron AzureAaron linked an issue Jan 19, 2024 that may be closed by this pull request
Copy link
Collaborator

@kevinthegreat1 kevinthegreat1 left a comment

Choose a reason for hiding this comment

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

Small things, otherwise looks good :)

@kevinthegreat1 kevinthegreat1 added changes requested This PR need changes tester needed This is used for a Discord webhook to create a thread and notify the tester. and removed reviews needed This PR needs reviews tester needed This is used for a Discord webhook to create a thread and notify the tester. labels Jan 19, 2024
@kevinthegreat1 kevinthegreat1 added this to the 1.17 milestone Jan 19, 2024
@Emirlol
Copy link
Collaborator Author

Emirlol commented Jan 19, 2024

I'm not very sure about the mimic filter, it would be nice if someone could take a look at it

AzureAaron
AzureAaron previously approved these changes Jan 20, 2024
@AzureAaron AzureAaron added reviews needed This PR needs reviews and removed changes requested This PR need changes labels Jan 20, 2024
@kevinthegreat1
Copy link
Collaborator

Other than that, the score works great by the way!

@kevinthegreat1 kevinthegreat1 added new feature This issue or PR is a new feature changes requested This PR need changes and removed reviews needed This PR needs reviews labels Jan 20, 2024
kevinthegreat1
kevinthegreat1 previously approved these changes Jan 20, 2024
@kevinthegreat1 kevinthegreat1 added merge me please Pull requests that are ready to merge and removed changes requested This PR need changes labels Jan 20, 2024
AzureAaron
AzureAaron previously approved these changes Jan 20, 2024
Emirlol and others added 21 commits January 21, 2024 09:37
This can happen if the player leaves the dungeon and rejoins while score is above 300, then fall below 300 from player deaths etc.
…en borders

Cleaned up the formatScore method to make sure all scores and letter rankings are equally wide, thereby making the text not move as score changes or go off screen borders when the location is set on a narrower score and a wider score is to be displayed.
There was a lingering ] that broke the whole mimic thing, and I spent 2 hours trying to figure out why...
@Emirlol Emirlol dismissed stale reviews from AzureAaron and kevinthegreat1 via 1b6eddc January 21, 2024 06:41
@kevinthegreat1 kevinthegreat1 merged commit a092f33 into SkyblockerMod:master Jan 21, 2024
@Emirlol Emirlol deleted the clientside-dungeon-score branch January 21, 2024 18:12
@AzureAaron AzureAaron removed the merge me please Pull requests that are ready to merge label Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature This issue or PR is a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dungeon Score Calc
3 participants