Conversation
| val cleanName = heldItem.hoverName.string.removeColor() | ||
| val title = when { | ||
| cleanName.contains("Knife") -> "§6Knife Level" | ||
| cleanName.contains("Chopper") || cleanName.contains("Dicer") -> "§6Axe Level" | ||
| cleanName.contains("Hoe") || cleanName.contains("Cutter") -> "§6Hoe Level" | ||
| else -> "§6Farming Tool Level" | ||
| } |
There was a problem hiding this comment.
Hypixel still calls the Cactus Knife a hoe, even though it has a sword item model. We don't distinguish between Chopper, Cutter, and Dicer either (nor do I think we should).
Also, small nitpick, but we can probably change "Farming Tool" to just "Tool" (not that it should ever realistically show up anyway).
May require adding imports to compile.
| val cleanName = heldItem.hoverName.string.removeColor() | |
| val title = when { | |
| cleanName.contains("Knife") -> "§6Knife Level" | |
| cleanName.contains("Chopper") || cleanName.contains("Dicer") -> "§6Axe Level" | |
| cleanName.contains("Hoe") || cleanName.contains("Cutter") -> "§6Hoe Level" | |
| else -> "§6Farming Tool Level" | |
| } | |
| val type = when (heldItem.getItemCategoryOrNull()) { | |
| ItemCategory.HOE -> "Hoe" | |
| ItemCategory.AXE -> "Axe" | |
| else -> "Tool" | |
| } | |
| val title = "§6$type Level" |
|
Other references to "Hoe Levels" in the code should also be changed to "Tool Level" (add
Changelog is too vague, please elaborate. For example: "Tool Level Display (formerly Hoe Levels Display) now adapts to the type of tool currently being used." |
25 Detekt FailuresRule violations
|
|
its called Hoe LevelS because the crop milestone display is called Crop MilestoneS |
good point, will revert that if i have time to update before i leave for vacation tmrw |
28 Detekt FailuresRules flagged (3): Rule violations
|
src/main/java/at/hannibal2/skyhanni/config/features/garden/GardenConfig.kt
Show resolved
Hide resolved
|
shouldd be resolved 🤞 however I have to go for a few days so if any more changes ill get back around to it them then |
1 Detekt Failure
|
2 Detekt Failures
|
|
This pull request has conflicts with the base branch "beta". Please resolve those so we can test out your changes. |
|
New alpha update:
So might as well make it just always say "Tool". But keep the search tags and command aliases. |
What'
Changes the static "Hoe Levels" HUD title to adapt to which tool type user is using.
If want any changes let me know/if there is better way i did this in 2min directly in github
Images
Changelog Improvements