Skip to content

Commit

Permalink
Merge branch 'refs/heads/beta' into fork/ItsEmpa/ghost-counter-rework
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt
  • Loading branch information
CalMWolfs committed Oct 14, 2024
2 parents 86b6b85 + 79620d3 commit 302969b
Show file tree
Hide file tree
Showing 18 changed files with 562 additions and 28 deletions.
42 changes: 42 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
+ Added an easier way to check your unique Hoppity Eggs collected on each island. - martimavocado (https://github.com/hannibal002/SkyHanni/pull/2625)
+ Shows your progress in the Warp Menu.
+ Can be automatically hidden when an island is complete.
+ Added the ability to block opening the Chocolate Factory when Booster Cookie is inactive. - Daveed (https://github.com/hannibal002/SkyHanni/pull/2713)

#### Inventory Features

Expand All @@ -26,6 +27,17 @@
+ Added Precision Mining Highlighter. - Cuz_Im_Clicks (https://github.com/hannibal002/SkyHanni/pull/2614)
+ Draws a box over the Precision Mining particles.
+ Added highlighting boxes to Crystal Nucleus crystals during Hoppity's Hunt. - Daveed (https://github.com/hannibal002/SkyHanni/pull/2598)
+ Added Flowstate Helper. - martimavocado (https://github.com/hannibal002/SkyHanni/pull/2561)
+ Displays stats for the Flowstate enchantment on mining tools.

#### Dungeon Features

+ Added Terminal Waypoints. - Stella (https://github.com/hannibal002/SkyHanni/pull/2719)
+ Displays waypoints during the F7/M7 Goldor Phase.

#### Chat Features

+ Added chat compacting for 'items in stash' warnings. - Daveed (https://github.com/hannibal002/SkyHanni/pull/2639)

### Improvements

Expand All @@ -38,11 +50,22 @@
+ Replaced repeated SkyHanni messages with the previous message. - hannibal2 (https://github.com/hannibal002/SkyHanni/pull/2700)
+ Added support for Guilds in player-related tab completions. - ThatGravyBoat (https://github.com/hannibal002/SkyHanni/pull/2637)
+ Added support for all Guild and Friend commands in tab completions. - ThatGravyBoat (https://github.com/hannibal002/SkyHanni/pull/2637)
+ Reordered commands in categories. - hannibal2 (https://github.com/hannibal002/SkyHanni/pull/2642)
+ Renamed some commands for clarity. - hannibal2 (https://github.com/hannibal002/SkyHanni/pull/2642)

#### Combat Improvements

+ Added Totem of Corruption and Enrager to the Ability Cooldown feature. - DungeonHub (https://github.com/hannibal002/SkyHanni/pull/2706)

#### Mining Improvements

+ Made the "You need a stronger tool to mine ..." chat filter hide every such message, not just Crystal Hollows gemstones. - Luna (https://github.com/hannibal002/SkyHanni/pull/2724)
+ Added an option to draw a line to your golden or diamond goblin. - Thunderblade73 (https://github.com/hannibal002/SkyHanni/pull/2717)

#### Diana Improvements

+ Added support for detecting and handling Inquisitor spawn messages from other mods from chat. - hannibal2 (https://github.com/hannibal002/SkyHanni/pull/2720)

#### Misc Improvements

+ Added distance display to waypoints created by Patcher's Send Coords feature. - jani (https://github.com/hannibal002/SkyHanni/pull/2704)
Expand All @@ -63,10 +86,14 @@
+ Fixed an error with compact experiment rewards chat messages. - hannibal2 (https://github.com/hannibal002/SkyHanni/pull/2702)
+ Fixed Craft Materials Bazaar not working with long item names. - Fazfoxy (https://github.com/hannibal002/SkyHanni/pull/2703)
+ Fixed the debug feature that allows you to add/remove stars being enabled by default. - CalMWolfs (https://github.com/hannibal002/SkyHanni/pull/2715)
+ Fixed displaying the Guardian warning text in the Experimentation Table even when using a Guardian Pet. - hannibal2 (https://github.com/hannibal002/SkyHanni/pull/2718)
+ Fixed locked Ultimate enchantments being hidden by Enchant Parsing. - martimavocado (https://github.com/hannibal002/SkyHanni/pull/2732)

#### Combat Fixes

+ Fixed Ghost Counter display appearing while in incorrect areas on the map. - hannibal2 (https://github.com/hannibal002/SkyHanni/pull/2696)
+ Fixed Ashfang Blazes sometimes being highlighted with the wrong color. - Empa (https://github.com/hannibal002/SkyHanni/pull/2112)
+ Fixed Ashfang Reset Cooldown counting in the wrong direction. - Empa (https://github.com/hannibal002/SkyHanni/pull/2112)

#### Custom Scoreboard Fixes

Expand All @@ -76,6 +103,18 @@

+ Fixed the chocolate egg share message sometimes displaying the wrong location name. - martimavocado (https://github.com/hannibal002/SkyHanni/pull/2711)

#### Garden Fixes

+ Fixed farming weight not disappearing when the config option is off. - Daveed (https://github.com/hannibal002/SkyHanni/pull/2731)

#### Crimson Isle Fixes

+ Fixed Replace Lava not working with OptiFine. - CalMWolfs + nopo (https://github.com/hannibal002/SkyHanni/pull/2727)

#### Diana Fixes

+ Fixed Griffin Pet Warning not supporting Diana Autopet rules. - hannibal2 (https://github.com/hannibal002/SkyHanni/pull/2722)

#### Commands Fixes

+ Fixed /shtranslate not working in most cases. - Obsidian (https://github.com/hannibal002/SkyHanni/pull/2693)
Expand All @@ -94,6 +133,9 @@
+ Added changelog verification. - CalMWolfs (https://github.com/hannibal002/SkyHanni/pull/2692)
+ This action ensures your PR is in the correct format so that it can be used by the release notes tool.
+ Added dungeon phase detection. - martimavocado (https://github.com/hannibal002/SkyHanni/pull/1865)
+ Added EntityLeaveWorldEvent. - Empa (https://github.com/hannibal002/SkyHanni/pull/2112)
+ Made command registration event-based. - j10a1n15, ThatGravyBoat (https://github.com/hannibal002/SkyHanni/pull/2642)
+ Added "line to the mob" handler. - Thunderblade73 (https://github.com/hannibal002/SkyHanni/pull/2717)

## Version 0.27

Expand Down
6 changes: 6 additions & 0 deletions docs/FEATURES.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ Use `/sh` or `/skyhanni` to open the SkyHanni config in game.
+ More chat filters. - Mikecraft1224 (https://github.com/hannibal002/SkyHanni/pull/1750)
+ Filters for rare dungeon chest rewards and sacrifice messages from other players.
+ Add config option to hide achievement spam on Alpha. - Daveed (https://github.com/hannibal002/SkyHanni/pull/2076)
+ Added chat compacting for 'items in stash' warnings. - Daveed (https://github.com/hannibal002/SkyHanni/pull/2639)

</details>
<details open><summary>
Expand Down Expand Up @@ -115,6 +116,8 @@ Use `/sh` or `/skyhanni` to open the SkyHanni config in game.
+ Optionally draws a line to them as well.
+ Added a Secret Chime for Dungeons with adjustable pitch and sound. - Ovi_1 (https://github.com/hannibal002/SkyHanni/pull/2478)
+ The sound and pitch of chimes in dungeons are customizable.
+ Added Terminal Waypoints. - Stella (https://github.com/hannibal002/SkyHanni/pull/2719)
+ Displays waypoints during the F7/M7 Goldor Phase.

</details>
<details open><summary>
Expand Down Expand Up @@ -917,6 +920,8 @@ Use `/sh` or `/skyhanni` to open the SkyHanni config in game.
+ Added Precision Mining Highlighter. - Cuz_Im_Clicks (https://github.com/hannibal002/SkyHanni/pull/2614)
+ Draws a box over the Precision Mining particles.
+ Added highlighting boxes to Crystal Nucleus crystals during Hoppity's Hunt. - Daveed (https://github.com/hannibal002/SkyHanni/pull/2598)
+ Added Flowstate Helper. - martimavocado (https://github.com/hannibal002/SkyHanni/pull/2561)
+ Displays stats for the Flowstate enchantment on mining tools.

</details>
<details open><summary>
Expand Down Expand Up @@ -1016,6 +1021,7 @@ Use `/sh` or `/skyhanni` to open the SkyHanni config in game.
+ Added an easier way to check your unique Hoppity Eggs collected on each island. - martimavocado (https://github.com/hannibal002/SkyHanni/pull/2625)
+ Shows your progress in the Warp Menu.
+ Can be automatically hidden when an island is complete.
+ Added the ability to block opening the Chocolate Factory when Booster Cookie is inactive. - Daveed (https://github.com/hannibal002/SkyHanni/pull/2713)

### The Carnival

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

allprojects {
group = "at.hannibal2.skyhanni"
version = "0.28.Beta.2"
version = "0.28.Beta.3"
repositories {
mavenCentral()
mavenLocal()
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import at.hannibal2.skyhanni.config.ConfigFileType
import at.hannibal2.skyhanni.config.ConfigManager
import at.hannibal2.skyhanni.config.Features
import at.hannibal2.skyhanni.config.SackData
import at.hannibal2.skyhanni.config.commands.RegisterCommandsEvent
import at.hannibal2.skyhanni.config.commands.CommandRegistrationEvent
import at.hannibal2.skyhanni.data.OtherInventoryData
import at.hannibal2.skyhanni.data.jsonobjects.local.FriendsJson
import at.hannibal2.skyhanni.data.jsonobjects.local.JacobContestsJson
Expand Down Expand Up @@ -59,7 +59,7 @@ class SkyHanniMod {

SkyHanniEvents.init(modules)

RegisterCommandsEvent.post()
CommandRegistrationEvent.post()

PreInitFinishedEvent().post()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import at.hannibal2.skyhanni.api.event.SkyHanniEvent
import at.hannibal2.skyhanni.config.commands.Commands.commands
import net.minecraftforge.client.ClientCommandHandler

object RegisterCommandsEvent : SkyHanniEvent() {
object CommandRegistrationEvent : SkyHanniEvent() {
fun register(name: String, block: CommandBuilder.() -> Unit) {
val info = CommandBuilder(name).apply(block)
if (commands.any { it.name == name }) {
Expand Down
18 changes: 9 additions & 9 deletions src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ object Commands {
val commands = mutableListOf<CommandBuilder>()

@HandleEvent
fun registerCommands(event: RegisterCommandsEvent) {
fun onCommandRegistration(event: CommandRegistrationEvent) {
usersMain(event)
usersNormal(event)
usersNormalReset(event)
Expand All @@ -121,7 +121,7 @@ object Commands {
shortenedCommands(event)
}

private fun usersMain(event: RegisterCommandsEvent) {
private fun usersMain(event: CommandRegistrationEvent) {
event.register("sh") {
aliases = listOf("skyhanni")
description = "Opens the main SkyHanni config"
Expand Down Expand Up @@ -167,7 +167,7 @@ object Commands {
}

@Suppress("LongMethod")
private fun usersNormal(event: RegisterCommandsEvent) {
private fun usersNormal(event: CommandRegistrationEvent) {
event.register("shcroptime") {
description =
"Calculates with your current crop per second speed " + "how long you need to farm a crop to collect this amount of items"
Expand Down Expand Up @@ -303,7 +303,7 @@ object Commands {
}
}

private fun usersNormalReset(event: RegisterCommandsEvent) {
private fun usersNormalReset(event: CommandRegistrationEvent) {

// Trackers
event.register("shresetslayerprofits") {
Expand Down Expand Up @@ -445,7 +445,7 @@ object Commands {
}
}

private fun usersBugFix(event: RegisterCommandsEvent) {
private fun usersBugFix(event: CommandRegistrationEvent) {
event.register("shupdaterepo") {
description = "Download the SkyHanni repo again"
category = CommandCategory.USERS_BUG_FIX
Expand Down Expand Up @@ -503,7 +503,7 @@ object Commands {
}
}

private fun devDebug(event: RegisterCommandsEvent) {
private fun devDebug(event: CommandRegistrationEvent) {
event.register("shdebug") {
description = "Copies SkyHanni debug data in the clipboard."
category = CommandCategory.DEVELOPER_DEBUG
Expand Down Expand Up @@ -635,7 +635,7 @@ object Commands {
}

@Suppress("LongMethod")
private fun devTest(event: RegisterCommandsEvent) {
private fun devTest(event: CommandRegistrationEvent) {
event.register("shtest") {
description = "Unused test command."
category = CommandCategory.DEVELOPER_TEST
Expand Down Expand Up @@ -781,15 +781,15 @@ object Commands {
}
}

private fun internalCommands(event: RegisterCommandsEvent) {
private fun internalCommands(event: CommandRegistrationEvent) {
event.register("shaction") {
description = "Internal command for chat click actions"
category = CommandCategory.INTERNAL
callback { ChatClickActionManager.onCommand(it) }
}
}

private fun shortenedCommands(event: RegisterCommandsEvent) {
private fun shortenedCommands(event: CommandRegistrationEvent) {
event.register("pko") {
description = "Kicks offline party members"
category = CommandCategory.SHORTENED_COMMANDS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ public class FilterTypesConfig {
@Accordion
public PowderMiningFilterConfig powderMiningFilter = new PowderMiningFilterConfig();

@Expose
@ConfigOption(name = "Stash Messages", desc = "")
@Accordion
public StashConfig stashMessages = new StashConfig();

@Expose
@ConfigOption(name = "Hypixel Lobbies", desc = "Hide announcements in Hypixel lobbies " +
"(player joins, loot boxes, prototype lobby messages, radiating generosity, Hypixel tournaments)")
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
package at.hannibal2.skyhanni.config.features.chat;

import at.hannibal2.skyhanni.config.FeatureToggle;
import com.google.gson.annotations.Expose;
import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorBoolean;
import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorSlider;
import io.github.notenoughupdates.moulconfig.annotations.ConfigOption;

public class StashConfig {

@Expose
@ConfigOption(name = "Stash Warnings", desc = "Compact warnings relating to items/materials in your stash.")
@ConfigEditorBoolean
@FeatureToggle
public boolean enabled = true;

@Expose
@ConfigOption(name = "Hide Duplicate Warnings", desc = "Hide duplicate warnings for previously reported stash counts.")
@ConfigEditorBoolean
public boolean hideDuplicateCounts = true;

@Expose
@ConfigOption(name = "Hide Low Warnings", desc = "Hide warnings with a total count below this number.")
@ConfigEditorSlider(minValue = 0, maxValue = 1000000, minStep = 100)
public int hideLowWarningsThreshold = 0;

@Expose
@ConfigOption(name = "Use /ViewStash", desc = "Use /viewstash [type] instead of /pickupstash.")
@ConfigEditorBoolean
public boolean useViewStash = false;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
package at.hannibal2.skyhanni.config.features.mining;

import at.hannibal2.skyhanni.config.FeatureToggle;
import at.hannibal2.skyhanni.config.core.config.Position;
import at.hannibal2.skyhanni.features.mining.FlowstateElements;
import com.google.gson.annotations.Expose;
import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorBoolean;
import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorDraggableList;
import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorSlider;
import io.github.notenoughupdates.moulconfig.annotations.ConfigLink;
import io.github.notenoughupdates.moulconfig.annotations.ConfigOption;
import io.github.notenoughupdates.moulconfig.annotations.SearchTag;

import java.util.List;

public class FlowstateHelperConfig {
@Expose
@ConfigOption(name = "Enabled", desc = "Shows stats for the Flowstate enchantment on Mining Tools.")
@ConfigEditorBoolean
@FeatureToggle
public boolean enabled = false;

@Expose
@ConfigOption(name = "Appearance", desc = "Drag text to change the appearance.")
@ConfigEditorDraggableList()
public List<FlowstateElements> appearance = FlowstateElements.defaultOption;

@Expose
@ConfigOption(name = "Dynamic Color", desc = "Makes the timer's color dynamic.")
@ConfigEditorBoolean
public boolean colorfulTimer = false;

@Expose
@ConfigOption(name = "Auto Hide", desc = "Automatically hides the GUI after being idle, in seconds.")
@SearchTag("autohide")
@ConfigEditorSlider(
minValue = -1,
maxValue = 30,
minStep = 1
)
public int autoHide = 10;

@Expose
@ConfigLink(owner = FlowstateHelperConfig.class, field = "enabled")
public Position position = new Position(-110 , 9);
}
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ public class MiningConfig {
@Accordion
public CrystalHighlighterConfig crystalHighlighter = new CrystalHighlighterConfig();

@Expose
@ConfigOption(name = "Flowstate Helper", desc = "")
@Accordion
public FlowstateHelperConfig flowstateHelper = new FlowstateHelperConfig();

@Expose
@ConfigOption(name = "Highlight Commission Mobs", desc = "Highlight mobs that are part of active commissions.")
@ConfigEditorBoolean
Expand Down
Loading

0 comments on commit 302969b

Please sign in to comment.