-
-
Notifications
You must be signed in to change notification settings - Fork 97
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
Slot Text Stuff #1134
base: master
Are you sure you want to change the base?
Slot Text Stuff #1134
Conversation
AzureAaron
commented
Jan 12, 2025
- HOTM Perk Level Slot Text (Implements HoTM levels display #1130)
- Add Discrite as an evolving item
- Replace magic values for colours with constants
- Wasn't sure what to name the blue colours but I guess its fine for now and can be changed later
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
About time someone refactored them into constants lol
private static final ConfigInformation CONFIG_INFORMATION = new ConfigInformation( | ||
"hotm_perk_level", | ||
"skyblocker.config.uiAndVisuals.slotText.hotmPerkLevel"); | ||
private static final Pattern LEVEL = Pattern.compile("Level (?<level>\\d+)\\/(?<max>\\d+)"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/
doesn't need to be escaped
private static final Pattern LEVEL = Pattern.compile("Level (?<level>\\d+)\\/(?<max>\\d+)"); | |
private static final Pattern LEVEL = Pattern.compile("Level (?<level>\\d+)/(?<max>\\d+)"); |
Also, this doesn't match maxed hotm perks. This doesn't seem intentional given that you handled the case where level == max
for a different color.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no idea what the text shows for that, it was a best effort guess