Skip to content

Commit

Permalink
Merge branch 'hannibal002:beta' into CakeTracker
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidArthurCole authored Aug 21, 2024
2 parents eebcb1c + 20bd1d5 commit da3c0b5
Show file tree
Hide file tree
Showing 25 changed files with 220 additions and 72 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/check_dependencies.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: Check PR Dependencies

# TODO: Run when other pr gets merged
on:
pull_request_target:
types: [ opened, edited ]
push:
branches:
- beta

jobs:
check-dependencies:
Expand Down
30 changes: 23 additions & 7 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SkyHanni - Change Log

## Version 0.26 (In Beta)
## Version 0.26

### New Features

Expand All @@ -16,7 +16,7 @@
azurejelly (https://github.com/hannibal002/SkyHanni/pull/1888)
+ Added In-Water Display. - Stella (https://github.com/hannibal002/SkyHanni/pull/1892)
+ Useful when using a Prismarine Blade in Stranded Mode.
+ Added toggle for compacting Garden visitor summary messages. - DavidArthurCole (https://github.com/hannibal002/SkyHanni/pull/2026)
+ Added toggle for compacting Garden visitor summary messages. - Daveed (https://github.com/hannibal002/SkyHanni/pull/2026)
+ Add Armor Stack Display. - Xupie (https://github.com/hannibal002/SkyHanni/pull/1811)
+ Display the number of stacks on armor pieces like Crimson, Terror etc.
+ Add a line to Nukekebi Skull. - j10a1n15 (https://github.com/hannibal002/SkyHanni/pull/2148)
Expand Down Expand Up @@ -150,7 +150,7 @@
+ Highly customizable: Colors, display sizes.
+ Estimated Price Integration.
+ Favorite slots; option to only display favorite slots.
+ Added toggle for compacting Garden visitor summary messages. - DavidArthurCole (https://github.com/hannibal002/SkyHanni/pull/2026)
+ Added toggle for compacting Garden visitor summary messages. - Daveed (https://github.com/hannibal002/SkyHanni/pull/2026)
+ Added SkyHanni User Luck to the stats breakdown. - martimavocado (https://github.com/hannibal002/SkyHanni/pull/1288)
+ This can be viewed in /sbmenu, /equipment, and the Misc Stats submenu.
+ Added a source download verification checker. - ThatGravyBoat (https://github.com/hannibal002/SkyHanni/pull/1914)
Expand Down Expand Up @@ -180,7 +180,7 @@
+ Also shortened the default display.
+ Minor GUI improvements in /ff. - Thunderblade73 (https://github.com/hannibal002/SkyHanni/pull/873)
+ Displays in /ff the fortune from bestiary and armor stats for enchantments and gemstones. - maxime-bodifee (https://github.com/hannibal002/SkyHanni/pull/1861)
+ Allow clicking on the Craftable! text in the shopping list to open the "view recipe" menu. - DavidArthurCole (https://github.com/hannibal002/SkyHanni/pull/2075)
+ Allow clicking on the Craftable! text in the shopping list to open the "view recipe" menu. - Daveed (https://github.com/hannibal002/SkyHanni/pull/2075)
+ Rename Mushroom Tier to Mushroom Milestone in Mooshroom Cow Perk. - hannibal2 (https://github.com/hannibal002/SkyHanni/pull/2159)
+ Add Fine Flour to the /ff menu. - Thunderblade73 (https://github.com/hannibal002/SkyHanni/pull/2194)
+ Added a "Compact" option to the Rancher Boots Optimal Speed GUI. - Empa (https://github.com/hannibal002/SkyHanni/pull/2137)
Expand All @@ -197,7 +197,7 @@
+ Hoppity Collection Stats are now persistent. - appable (https://github.com/hannibal002/SkyHanni/pull/1836)
+ No longer reset on profile swap or game restart.
+ Merged duplicate times in compacted Hoppity's messages. -
DavidArthurCole (https://github.com/hannibal002/SkyHanni/pull/1887)
Daveed (https://github.com/hannibal002/SkyHanni/pull/1887)
+ Option to show Hoppity Eggs timer outside of SkyBlock. -
maxime-bodifee (https://github.com/hannibal002/SkyHanni/pull/1926)
+ Adjusted and added Rabbit Uncle & Dog Keybinds. - raven (https://github.com/hannibal002/SkyHanni/pull/1907)
Expand All @@ -214,6 +214,7 @@
+ Changed click-to-warp toggle to also work for unclaimed eggs display. - Daveed (https://github.com/hannibal002/SkyHanni/pull/2211)
+ When Chocolate Factory prestige is maxed, the display shows time until the next max milestone instead. - seraid (https://github.com/hannibal002/SkyHanni/pull/2226)
+ Added an option to choose the color of Hoppity Egg Waypoints. - jani (https://github.com/hannibal002/SkyHanni/pull/2259)
+ Added rabbit rarity to Compact Hoppity messages. - not_a_cow (https://github.com/hannibal002/SkyHanni/pull/2364)

#### Mining Improvements

Expand Down Expand Up @@ -322,6 +323,7 @@
+ Added the current Minister's name and perks to the Mayor Display on the Custom Scoreboard. - j10a1n15 (https://github.com/hannibal002/SkyHanni/pull/2313)
+ Hide repo errors in chat. - hannibal2 (https://github.com/hannibal002/SkyHanni/pull/2338)
+ Errors will be displayed directly in the GUI when necessary, making them less intrusive.
+ Added a "Mods Folder" button to the NEU error message. - martimavocado (https://github.com/hannibal002/SkyHanni/pull/2362)

### Fixes

Expand Down Expand Up @@ -386,7 +388,7 @@
+ Fixed Fine Flour exportation not getting detected from chat messages for use in FF Guide. - Luna (https://github.com/hannibal002/SkyHanni/pull/2215)
+ Fixed "Craftable!" text not opening the recipe. - Daveed (https://github.com/hannibal002/SkyHanni/pull/2219)
+ Fixed favorite pets not being detected by FF Guide. - Thunderblade73 (https://github.com/hannibal002/SkyHanni/pull/2202)
+ Fixed farming weight estimate being much too large. - DavidArthurCole (https://github.com/hannibal002/SkyHanni/pull/2230)
+ Fixed farming weight estimate being much too large. - Daveed (https://github.com/hannibal002/SkyHanni/pull/2230)
+ Fixed Jacob's Contest FF needed display not showing. - Thunderblade73 (https://github.com/hannibal002/SkyHanni/pull/2262)
+ Fixed Dicer Tracker Reset Button misalignment. - hannibal2 (https://github.com/hannibal002/SkyHanni/pull/2248)
+ Fixed errors when selecting Fine Flour with the Sprayonator. - Daveed (https://github.com/hannibal002/SkyHanni/pull/2251)
Expand All @@ -396,6 +398,8 @@
+ Fixed Zorro's Cape not working with Green Thumb in the FF stats breakdown in item lore. - hannibal2 (https://github.com/hannibal002/SkyHanni/pull/2299)
+ Fixed Composter Overlay calculating incorrectly while Composter Display is disabled. - hannibal2 (https://github.com/hannibal002/SkyHanni/pull/2294)
+ Fixed own garden not being detected when swapping islands from a guesting server. - hannibal2 (https://github.com/hannibal002/SkyHanni/pull/2355)
+ Fixed a typo in the Farming Weight Display error message. - aphased (https://github.com/hannibal002/SkyHanni/pull/2376)
+ Fixed Finnegan still having the Farming Simulator perk and missing the Pest Eradicator perk. - Luna (https://github.com/hannibal002/SkyHanni/pull/2359)

#### Chocolate Factory & Hoppity Hunt Fixes

Expand All @@ -409,7 +413,7 @@
appable (https://github.com/hannibal002/SkyHanni/pull/1925)
+ Fixed incorrect API name conversion for Fish the Rabbit. - appable (https://github.com/hannibal002/SkyHanni/pull/1975)
+ Fixed stray rabbit sound not playing for the Golden Rabbit. - HiZe (https://github.com/hannibal002/SkyHanni/pull/1913)
+ Fixed compact chat sometimes breaking when obtaining legendary or higher tier rabbits. - DavidArthurCole (https://github.com/hannibal002/SkyHanni/pull/2041)
+ Fixed compact chat sometimes breaking when obtaining legendary or higher tier rabbits. - Daveed (https://github.com/hannibal002/SkyHanni/pull/2041)
+ Fixed highlight missing requirements even when Hoppity Rabbit is already found. - hannibal2 (https://github.com/hannibal002/SkyHanni/pull/2101)
+ Fixed Compact Hoppity Chat not working with rabbits purchased from the Hoppity NPC. - Daveed (https://github.com/hannibal002/SkyHanni/pull/2100)
+ Fixed a rare case where golden strays caused incorrect duplicate detection during Compact Chat for Hoppity's. - Daveed (https://github.com/hannibal002/SkyHanni/pull/2090)
Expand All @@ -429,6 +433,7 @@
+ Fixed Hoppity custom goals being off by one level. - Daveed (https://github.com/hannibal002/SkyHanni/pull/2280)
+ Fixed Custom Reminder not working in the Chocolate Shop. - hannibal2 (https://github.com/hannibal002/SkyHanni/pull/2334)
+ Fixed a warning about space in the Chocolate Factory appearing even when the barn was already large enough to store all rabbits. - hannibal2 (https://github.com/hannibal002/SkyHanni/pull/2356)
+ Fixed the Hoppity Menu not being detected when it only had one page. - hannibal2 (https://github.com/hannibal002/SkyHanni/pull/2368)

#### Custom Scoreboard Fixes

Expand Down Expand Up @@ -481,6 +486,10 @@
+ Fixed Commission Mob Highlighter incorrectly highlighting Deep Sea Protectors as Automatons. - Luna (https://github.com/hannibal002/SkyHanni/pull/2130)
+ Fixed Squid Pet counting towards the Fishing Timer. - Empa (https://github.com/hannibal002/SkyHanni/pull/1960)
+ Fixed an error during fishing. - hannibal2 (https://github.com/hannibal002/SkyHanni/pull/2350)
+ Fixed error messages appearing while fishing. - hannibal2 (https://github.com/hannibal002/SkyHanni/pull/2370)
+ Fixed obfuscated trophy fish names being unreadable in the Fishing Profit Tracker. - hannibal2 (https://github.com/hannibal002/SkyHanni/pull/2363)
+ Fixed item names appearing in incorrect spots while holding a fishing rod. - hannibal2 (https://github.com/hannibal002/SkyHanni/pull/2371)
+ Fixed the fishing timer being incorrect for some sea creatures. - Empa (https://github.com/hannibal002/SkyHanni/pull/2365)

#### Performance Fixes

Expand Down Expand Up @@ -527,13 +536,17 @@
+ Fixed shift-clicking items in GUIs triggering the Item Pickup Log. - j10a1n15 (https://github.com/hannibal002/SkyHanni/pull/2305)
+ Fixed the Master Mode Dungeon stack size display in the party finder menu. - fazfoxy (https://github.com/hannibal002/SkyHanni/pull/2316)
+ Fixed the Item Pickup Log detecting "Magical Map" in dungeons when using Skytils. - hannibal2 (https://github.com/hannibal002/SkyHanni/pull/2351)
+ Fixed Attribute Shards not displaying their names in the Chest Value feature. - hannibal2 (https://github.com/hannibal002/SkyHanni/pull/2363)
+ Fixed Bazaar item movement being counted towards Item Trackers. - hannibal2 (https://github.com/hannibal002/SkyHanni/pull/2366)
+ Fixed the Item Pickup Log showing incorrect icons for some items when collected via sacks. - hannibal2 (https://github.com/hannibal002/SkyHanni/pull/2373)

#### Combat Fixes

+ Fixed summons not being removed from Summoning Mob Display. - Empa (https://github.com/hannibal002/SkyHanni/pull/1964)
+ Fixed area mini boss spawn durations below 1 second not displaying. - Empa (https://github.com/hannibal002/SkyHanni/pull/2110)
+ Fixed summons death messages getting blocked even when the feature is disabled. - Daveed (https://github.com/hannibal002/SkyHanni/pull/2132)
+ Fixed slayer quest warning sometimes showing incorrectly. - hannibal2 (https://github.com/hannibal002/SkyHanni/pull/2232)
+ Fixed the "wrong slayer" alert being shown when attacking Bladesoul. - hannibal2 (https://github.com/hannibal002/SkyHanni/pull/2367)

#### Chat Fixes

Expand Down Expand Up @@ -583,6 +596,9 @@
+ Fixed Item Trackers displaying the incorrect NPC price. - hannibal2 (https://github.com/hannibal002/SkyHanni/pull/2352)
+ Fixed players with similar names to friends being incorrectly marked as friends in the tab list. - hannibal2 (https://github.com/hannibal002/SkyHanni/pull/2353)
+ Fixed color codes in Discord RPC pet status. - NetheriteMiner (https://github.com/hannibal002/SkyHanni/pull/2344)
+ Disabled the SkyHanni GUI's hover function while in other mods' screens. - hannibal2 (https://github.com/hannibal002/SkyHanni/pull/2374)
+ Fixed the Trapper Helper checking for the wrong Finnegan perk. - Luna (https://github.com/hannibal002/SkyHanni/pull/2359)
+ Fixed items with no NPC sell price being counted as -1 coins instead of 0 coins. - Luna (https://github.com/hannibal002/SkyHanni/pull/2360)

### Technical Details

Expand Down
2 changes: 1 addition & 1 deletion docs/FEATURES.md
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ Use `/sh` or `/skyhanni` to open the SkyHanni config in game.
+ Checks if you have enough materials to craft the items and depending on that shows the button or not.
+ Overflow Garden crop milestones. - Luna & HiZe (https://github.com/hannibal002/SkyHanni/pull/997)
+ New "Craftable!" message when Visitor Items Needed are craftable. - Paloys (https://github.com/hannibal002/SkyHanni/pull/1891)
+ Added toggle for compacting Garden visitor summary messages. - DavidArthurCole (https://github.com/hannibal002/SkyHanni/pull/2026)
+ Added toggle for compacting Garden visitor summary messages. - Daveed (https://github.com/hannibal002/SkyHanni/pull/2026)
+ Added Farming Personal Best FF Gain. - hannibal2 (https://github.com/hannibal002/SkyHanni/pull/2332)
+ Displays in chat how much additional FF you earn from the farming contest personal best bonus after beating your previous record.

Expand Down
2 changes: 1 addition & 1 deletion root.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ plugins {

allprojects {
group = "at.hannibal2.skyhanni"
version = "0.26.Beta.24"
version = "0.26"
}

preprocess {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import org.apache.logging.log4j.Logger
clientSideOnly = true,
useMetadata = true,
guiFactory = "at.hannibal2.skyhanni.config.ConfigGuiForgeInterop",
version = "0.26.Beta.24",
version = "0.26",
)
class SkyHanniMod {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,20 @@
public class ChristmasPresentConfig {

@Expose
@ConfigOption(name = "Present Waypoints", desc = "Show all Present waypoints")
@ConfigOption(name = "Present Waypoints", desc = "Show all Present waypoints.")
@ConfigEditorBoolean
@FeatureToggle
public boolean allWaypoints = false;

// TODO confirm if this toggle actually does anything, ar there helper waypoints at all?
@Expose
@ConfigOption(name = "Entrance Waypoints", desc = "Show helper waypoints to .")
@ConfigOption(name = "Entrance Waypoints", desc = "Show helper waypoints.")
@ConfigEditorBoolean
public boolean allEntranceWaypoints = false;


@Expose
@ConfigOption(name = "Only Closest", desc = "Only show the closest waypoint")
@ConfigOption(name = "Only Closest", desc = "Only show the closest waypoint.")
@ConfigEditorBoolean
public boolean onlyClosest = false;
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class HalloweenBasketConfig {
public boolean allEntranceWaypoints = false;

@Expose
@ConfigOption(name = "Only Closest", desc = "Only show the closest waypoint")
@ConfigOption(name = "Only Closest", desc = "Only show the closest waypoint.")
@ConfigEditorBoolean
public boolean onlyClosest = true;
}
2 changes: 1 addition & 1 deletion src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ object HypixelData {
if (LorenzUtils.onHypixel && LorenzUtils.inSkyBlock) {
loop@ for (line in ScoreboardData.sidebarLinesFormatted) {
skyblockAreaPattern.matchMatcher(line) {
val originalLocation = group("area")
val originalLocation = group("area").removeColor()
skyBlockArea = LocationFixData.fixLocation(skyBlockIsland) ?: originalLocation
skyBlockAreaWithSymbol = line.trim()
break@loop
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/at/hannibal2/skyhanni/data/OwnInventoryData.kt
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ object OwnInventoryData {
}
}

private fun ignoreItem(duration: Duration, condition: (NEUInternalName) -> Boolean) {
// TODO add ah movements
fun ignoreItem(duration: Duration, condition: (NEUInternalName) -> Boolean) {
ignoredItemsUntil.add(IgnoredItem(condition, SimpleTimeMark.now() + duration))
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ object DungeonFinderFeatures {

/**
* REGEX-TEST: The Catacombs
* REGEX-TEST: Master Mode The Catacombs
* REGEX-TEST: MM The Catacombs
*/
private val floorTypePattern by patternGroup.pattern(
"floor.type",
"(The Catacombs).*|.*(Master Mode The Catacombs).*",
"(The Catacombs).*|.*(MM The Catacombs).*",
)
private val checkIfPartyPattern by patternGroup.pattern(
"check.if.party",
Expand Down Expand Up @@ -97,11 +97,11 @@ object DungeonFinderFeatures {

/**
* REGEX-TEST: Master Mode The Catacombs
* REGEX-TEST: The Catacombs
* REGEX-TEST: MM The Catacombs
*/
private val masterModeFloorPattern by patternGroup.pattern(
"floor.mastermode",
"(MM )|(.*Master Mode The Catacombs)"
"(MM|.*Master Mode) The Catacombs.*"
)
private val dungeonFloorPattern by patternGroup.pattern(
"floor.dungeon",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,15 @@ object HoppityCollectionStats {
private val config get() = ChocolateFactoryAPI.config

private val patternGroup = ChocolateFactoryAPI.patternGroup.group("collection")

/**
* REGEX-TEST: (1/17) Hoppity's Collection
* REGEX-TEST: (12/17) Hoppity's Collection
* REGEX-TEST: Hoppity's Collection
*/
private val pagePattern by patternGroup.pattern(
"page.current",
"\\((?<page>\\d+)/(?<maxPage>\\d+)\\) Hoppity's Collection",
"(?:\\((?<page>\\d+)\\/(?<maxPage>\\d+)\\) )?Hoppity's Collection",
)
private val duplicatesFoundPattern by patternGroup.pattern(
"duplicates.found",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package at.hannibal2.skyhanni.features.fishing

import at.hannibal2.skyhanni.SkyHanniMod
import at.hannibal2.skyhanni.data.IslandType
import at.hannibal2.skyhanni.events.LorenzRenderWorldEvent
import at.hannibal2.skyhanni.events.LorenzTickEvent
import at.hannibal2.skyhanni.features.fishing.FishingAPI.isBait
Expand All @@ -10,6 +11,7 @@ import at.hannibal2.skyhanni.utils.EntityUtils
import at.hannibal2.skyhanni.utils.ItemUtils.getSkullTexture
import at.hannibal2.skyhanni.utils.ItemUtils.name
import at.hannibal2.skyhanni.utils.LorenzUtils
import at.hannibal2.skyhanni.utils.LorenzUtils.isInIsland
import at.hannibal2.skyhanni.utils.RenderUtils.drawString
import at.hannibal2.skyhanni.utils.RenderUtils.exactLocation
import at.hannibal2.skyhanni.utils.StringUtils.removeColor
Expand All @@ -27,7 +29,7 @@ object ShowFishingItemName {
// Taken from Skytils
private val cheapCoins = setOf(
"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNTM4MDcxNzIxY2M1YjRjZDQwNmNlNDMxYTEzZjg2MDgzYTg5NzNlMTA2NGQyZjg4OTc4Njk5MzBlZTZlNTIzNyJ9fX0=",
"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZGZhMDg3ZWI3NmU3Njg3YTgxZTRlZjgxYTdlNjc3MjY0OTk5MGY2MTY3Y2ViMGY3NTBhNGM1ZGViNmM0ZmJhZCJ9fX0="
"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZGZhMDg3ZWI3NmU3Njg3YTgxZTRlZjgxYTdlNjc3MjY0OTk5MGY2MTY3Y2ViMGY3NTBhNGM1ZGViNmM0ZmJhZCJ9fX0=",
)

@SubscribeEvent
Expand Down Expand Up @@ -67,5 +69,18 @@ object ShowFishingItemName {
}
}

fun isEnabled() = LorenzUtils.inSkyBlock && config.enabled && FishingAPI.holdingRod
fun inCorrectArea(): Boolean {
if (IslandType.HUB.isInIsland()) {
LorenzUtils.skyBlockArea?.let {
if (it.endsWith(" Atrium")) return false
if (it.endsWith(" Museum")) return false
if (it == "Fashion Shop") return false
if (it == "Shen's Auction") return false
}
}
if (IslandType.THE_END.isInIsland()) return false
return true
}

fun isEnabled() = LorenzUtils.inSkyBlock && config.enabled && FishingAPI.holdingRod && inCorrectArea()
}
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ object TrophyFishDisplay {

private fun getItemName(rawName: String): String {
val name = getInternalName(rawName).itemName
return name.split(" ").dropLast(1).joinToString(" ").replace("§k", "")
return name.split(" ").dropLast(1).joinToString(" ")
}

private fun getInternalName(name: String): NEUInternalName {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ object FarmingWeightDisplay {
"Error loading user farming weight\n" +
"§eLoading the farming weight data from elitebot.dev failed!\n" +
"§eYou can re-enter the garden to try to fix the problem.\n" +
"§cIf this message repeats, please report it on Discord!\n",
"§cIf this message repeats, please report it on Discord",
"url" to url,
"apiResponse" to apiResponse,
"localProfile" to localProfile,
Expand Down
Loading

0 comments on commit da3c0b5

Please sign in to comment.