Skip to content

Commit

Permalink
Merge branch 'hannibal002:beta' into flight-duration
Browse files Browse the repository at this point in the history
  • Loading branch information
j10a1n15 authored May 20, 2024
2 parents 5969daa + d5585f8 commit cffab32
Show file tree
Hide file tree
Showing 122 changed files with 1,662 additions and 591 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ plugins {
}

group = "at.hannibal2.skyhanni"
version = "0.25.Beta.25"
version = "0.25"

val gitHash by lazy {
val baos = ByteArrayOutputStream()
Expand Down
264 changes: 204 additions & 60 deletions docs/CHANGELOG.md

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions docs/FEATURES.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ Use `/sh` or `/skyhanni` to open the SkyHanni config in game.
purse.
+ Copy Underbid Keybind. - Obsidian
+ Copies the price of the hovered item in Auction House minus 1 coin into the clipboard for easier under-bidding.
+ Option in the Auction House search browser to search for the item on coflnet.com. - hannibal2 (https://github.com/hannibal002/SkyHanni/pull/1743)
+ Gfs message after super crafting. — Zickles
+ Adding a clickable message to pick up the super crafted items from sacks.
+ Added Inferno Minion Fuel pickup prevention. - Zickles (https://github.com/hannibal002/SkyHanni/pull/1103)
Expand Down Expand Up @@ -877,6 +878,7 @@ Use `/sh` or `/skyhanni` to open the SkyHanni config in game.
+ Amount of chocolate until next prestige to stats display. - seraid (https://github.com/hannibal002/SkyHanni/pull/1638)
+ Ability to adjust the opacity of players near shared and guessed egg waypoints. - RobotHanzo (https://github.com/hannibal002/SkyHanni/pull/1582)
+ Time until the next Hoppity event in chat message for egg locator. - seraid (https://github.com/hannibal002/SkyHanni/pull/1625)
+ Warning before the Time Tower in the Chocolate Factory ends. - seraid (https://github.com/hannibal002/SkyHanni/pull/1816)

</details>
<details open><summary>
Expand Down Expand Up @@ -1159,6 +1161,9 @@ Use `/sh` or `/skyhanni` to open the SkyHanni config in game.
+ Inventory background to GUI editor. - seraid (https://github.com/hannibal002/SkyHanni/pull/1622)
+ Added option to hide item tooltips inside the Harp. - raven (https://github.com/hannibal002/SkyHanni/pull/1700)
+ Option to Replace Roman Numerals. - Mikecraft1224 (https://github.com/hannibal002/SkyHanni/pull/1722)
+ Simple Ferocity Display. - hannibal2 (https://github.com/hannibal002/SkyHanni/pull/1765)
+ Shows the Ferocity stat as a single GUI element.
+ Requires the Tab List widget to be enabled and Ferocity to be selected to work.

</details>
<details open><summary>
Expand Down
18 changes: 12 additions & 6 deletions src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import at.hannibal2.skyhanni.data.ChatManager
import at.hannibal2.skyhanni.data.CropAccessoryData
import at.hannibal2.skyhanni.data.EntityData
import at.hannibal2.skyhanni.data.EntityMovementData
import at.hannibal2.skyhanni.data.EventCounter
import at.hannibal2.skyhanni.data.FameRanks
import at.hannibal2.skyhanni.data.FixedRateTimerManager
import at.hannibal2.skyhanni.data.FriendAPI
Expand Down Expand Up @@ -89,6 +90,7 @@ import at.hannibal2.skyhanni.features.chat.playerchat.PlayerChatFilter
import at.hannibal2.skyhanni.features.chat.playerchat.PlayerChatModifier
import at.hannibal2.skyhanni.features.chroma.ChromaManager
import at.hannibal2.skyhanni.features.combat.BestiaryData
import at.hannibal2.skyhanni.features.combat.FerocityDisplay
import at.hannibal2.skyhanni.features.combat.HideDamageSplash
import at.hannibal2.skyhanni.features.combat.damageindicator.DamageIndicatorManager
import at.hannibal2.skyhanni.features.combat.endernodetracker.EnderNodeTracker
Expand Down Expand Up @@ -269,6 +271,8 @@ import at.hannibal2.skyhanni.features.inventory.ShiftClickNPCSell
import at.hannibal2.skyhanni.features.inventory.SkyblockGuideHighlightFeature
import at.hannibal2.skyhanni.features.inventory.StatsTuning
import at.hannibal2.skyhanni.features.inventory.SuperCraftFeatures
import at.hannibal2.skyhanni.features.inventory.auctionhouse.AuctionHouseCopyUnderbidPrice
import at.hannibal2.skyhanni.features.inventory.auctionhouse.AuctionHouseOpenPriceWebsite
import at.hannibal2.skyhanni.features.inventory.bazaar.BazaarApi
import at.hannibal2.skyhanni.features.inventory.bazaar.BazaarBestSellMethod
import at.hannibal2.skyhanni.features.inventory.bazaar.BazaarCancelledBuyOrderClipboard
Expand Down Expand Up @@ -361,7 +365,6 @@ import at.hannibal2.skyhanni.features.misc.compacttablist.AdvancedPlayerList
import at.hannibal2.skyhanni.features.misc.compacttablist.TabListReader
import at.hannibal2.skyhanni.features.misc.compacttablist.TabListRenderer
import at.hannibal2.skyhanni.features.misc.discordrpc.DiscordRPCManager
import at.hannibal2.skyhanni.features.misc.items.AuctionHouseCopyUnderbidPrice
import at.hannibal2.skyhanni.features.misc.items.EstimatedItemValue
import at.hannibal2.skyhanni.features.misc.items.EstimatedWardrobePrice
import at.hannibal2.skyhanni.features.misc.items.GlowingDroppedItems
Expand Down Expand Up @@ -485,7 +488,7 @@ import org.apache.logging.log4j.Logger
clientSideOnly = true,
useMetadata = true,
guiFactory = "at.hannibal2.skyhanni.config.ConfigGuiForgeInterop",
version = "0.25.Beta.25",
version = "0.25",
)
class SkyHanniMod {

Expand All @@ -509,7 +512,7 @@ class SkyHanniMod {
loadModule(EntityData())
loadModule(MobData())
loadModule(MobDetection())
loadModule(EntityMovementData())
loadModule(EntityMovementData)
loadModule(TestExportTools)
loadModule(ItemClickData())
// loadModule(Year300RaffleEvent)
Expand All @@ -523,7 +526,7 @@ class SkyHanniMod {
loadModule(RenderData())
loadModule(GardenCropMilestones)
loadModule(GardenCropMilestonesCommunityFix)
loadModule(GardenCropUpgrades())
loadModule(GardenCropUpgrades)
loadModule(VisitorListener())
loadModule(VisitorRewardWarning())
loadModule(OwnInventoryData())
Expand Down Expand Up @@ -563,6 +566,7 @@ class SkyHanniMod {
loadModule(ContributorManager)
loadModule(TabComplete)
loadModule(HypixelBazaarFetcher)
loadModule(EventCounter)

// APIs
loadModule(BazaarApi())
Expand Down Expand Up @@ -631,6 +635,7 @@ class SkyHanniMod {
loadModule(ShiftClickBrewing())
loadModule(BazaarOpenPriceWebsite())
loadModule(AuctionHouseCopyUnderbidPrice())
loadModule(AuctionHouseOpenPriceWebsite())
loadModule(AnvilCombineHelper())
loadModule(SeaCreatureMessageShortener())
loadModule(AshfangFreezeCooldown)
Expand Down Expand Up @@ -686,6 +691,7 @@ class SkyHanniMod {
loadModule(FireVeilWandParticles())
loadModule(HideMobNames())
loadModule(HideDamageSplash())
loadModule(FerocityDisplay())
loadModule(InGameDateDisplay())
loadModule(ThunderSparksHighlight())
loadModule(BlazeSlayerDaggerHelper())
Expand Down Expand Up @@ -734,7 +740,7 @@ class SkyHanniMod {
loadModule(MinionCraftHelper())
loadModule(TpsCounter())
loadModule(ParticleHider())
loadModule(MiscFeatures())
loadModule(MiscFeatures)
loadModule(ReplaceRomanNumerals())
loadModule(GardenPlotMenuHighlighting())
loadModule(SkyMartCopperPrice())
Expand Down Expand Up @@ -924,7 +930,7 @@ class SkyHanniMod {
loadModule(GardenInventoryTooltipOverflow())
loadModule(SkillTooltip())
loadModule(MaxPurseItems())
loadModule(SuperCraftFeatures())
loadModule(SuperCraftFeatures)
loadModule(InfernoMinionFeatures())
loadModule(LimboPlaytime())
loadModule(RareDropMessages())
Expand Down
36 changes: 13 additions & 23 deletions src/main/java/at/hannibal2/skyhanni/api/SkillAPI.kt
Original file line number Diff line number Diff line change
Expand Up @@ -203,37 +203,27 @@ object SkillAPI {
}

@SubscribeEvent
fun onDebugDataCollectCurrent(event: DebugDataCollectEvent) {
event.title("Current Skill")
fun onDebugDataCollect(event: DebugDataCollectEvent) {
event.title("Skills")
val storage = storage
if (storage == null) {
event.addIrrelevant("SkillMap is empty")
return
}

val skillType = activeSkill
if (skillType == null) {
event.addIrrelevant("activeSkill is null")
return
}

event.addData {
storage[skillType]?.let { skillInfo ->
addDebug(skillType, skillInfo)
event.addIrrelevant {
val activeSkill = activeSkill
if (activeSkill == null) {
add("activeSkill is null")
} else {
add("active skill:")
storage[activeSkill]?.let { skillInfo ->
addDebug(activeSkill, skillInfo)
}
add("")
add("")
}
}
}

@SubscribeEvent
fun onDebugDataCollectAll(event: DebugDataCollectEvent) {
event.title("All Skills")
val storage = storage
if (storage == null) {
event.addIrrelevant("SkillMap is empty")
return
}

event.addIrrelevant {
for ((skillType, skillInfo) in storage) {
addDebug(skillType, skillInfo)
}
Expand Down
14 changes: 11 additions & 3 deletions src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import at.hannibal2.skyhanni.api.SkillAPI
import at.hannibal2.skyhanni.config.ConfigFileType
import at.hannibal2.skyhanni.config.ConfigGuiManager
import at.hannibal2.skyhanni.config.features.About.UpdateStream
import at.hannibal2.skyhanni.utils.chat.ChatClickActionManager
import at.hannibal2.skyhanni.data.ChatManager
import at.hannibal2.skyhanni.data.GardenCropMilestonesCommunityFix
import at.hannibal2.skyhanni.data.GuiEditManager
Expand Down Expand Up @@ -82,6 +81,7 @@ import at.hannibal2.skyhanni.utils.LorenzUtils
import at.hannibal2.skyhanni.utils.SoundUtils
import at.hannibal2.skyhanni.utils.StringUtils.splitLines
import at.hannibal2.skyhanni.utils.TabListData
import at.hannibal2.skyhanni.utils.chat.ChatClickActionManager
import at.hannibal2.skyhanni.utils.chat.Text
import at.hannibal2.skyhanni.utils.chat.Text.hover
import at.hannibal2.skyhanni.utils.chat.Text.suggest
Expand Down Expand Up @@ -256,7 +256,7 @@ object Commands {
"Resets the Pest Profit Tracker"
) { PestProfitTracker.resetCommand() }
registerCommand(
"shresetmythologicalcreatureracker",
"shresetmythologicalcreaturetracker",
"Resets the Mythological Creature Tracker"
) { MythologicalCreatureTracker.resetCommand() }
registerCommand(
Expand Down Expand Up @@ -316,7 +316,7 @@ object Commands {
registerCommand(
"shlimbo",
"Warps you to Limbo."
) { MiscFeatures().goToLimbo() }
) { MiscFeatures.goToLimbo() }
registerCommand(
"shlanedetection",
"Detect a farming lane in garden"
Expand Down Expand Up @@ -377,6 +377,10 @@ object Commands {
"shpumpkin",
"Toggles receiving the 12 fortune from pumpkins"
) { CaptureFarmingGear.reversePumpkinFortune() }
registerCommand(
"shcocoabeans",
"Toggles receiving the 12 fortune from cocoa beans"
) { CaptureFarmingGear.reverseCocoaBeansFortune() }
registerCommand(
"shrepostatus",
"Shows the status of all the mods constants"
Expand Down Expand Up @@ -425,6 +429,10 @@ object Commands {
"shtestsackapi",
"Get the amount of an item in sacks according to internal feature SackAPI"
) { SackAPI.testSackAPI(it) }
registerCommand(
"shtestgriffinspots",
"Show potential griffin spots around you."
) { GriffinBurrowHelper.testGriffinSpots() }
}

private fun developersCodingHelp() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package at.hannibal2.skyhanni.config.enums

import at.hannibal2.skyhanni.SkyHanniMod
import net.minecraft.client.Minecraft

enum class OutsideSbFeature(private val displayName: String) {
MODIFY_VISUAL_WORDS("Modify Visual Words"),
Expand All @@ -21,5 +22,6 @@ enum class OutsideSbFeature(private val displayName: String) {

override fun toString() = displayName

fun isSelected() = SkyHanniMod.feature.misc.showOutsideSB.contains(this)
fun isSelected() =
Minecraft.getMinecraft().thePlayer != null && SkyHanniMod.feature.misc.showOutsideSB.contains(this)
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorInfoText;
import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorSlider;
import io.github.notenoughupdates.moulconfig.annotations.ConfigOption;
import io.github.notenoughupdates.moulconfig.observer.Property;

public class ChromaConfig {

Expand All @@ -22,7 +23,7 @@ public class ChromaConfig {
@ConfigOption(name = "Enabled", desc = "Toggle for SkyHanni's chroma. (Disables Patcher's Optimized Font Renderer while enabled)")
@ConfigEditorBoolean
@FeatureToggle
public boolean enabled = false;
public Property<Boolean> enabled = Property.of(false);

@Expose
@ConfigOption(name = "Chroma Size", desc = "Change the size of each color in the chroma.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ public class CombatConfig {
@Accordion
public EnderNodeConfig enderNodeTracker = new EnderNodeConfig();

@Expose
@ConfigOption(name = "Ferocity Display", desc = "")
@Accordion
public FerocityDisplayConfig ferocityDisplay = new FerocityDisplayConfig();

@Expose
@ConfigOption(name = "Hide Damage Splash", desc = "Hide all damage splashes anywhere in SkyBlock.")
@ConfigEditorBoolean
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package at.hannibal2.skyhanni.config.features.combat;

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

public class FerocityDisplayConfig {

@Expose
@ConfigOption(
name = "Enabled",
desc = "Show ferocity stat as single gui element. " +
"Requires tab list widget enabled and ferocity selected to work."
)
@ConfigEditorBoolean
@FeatureToggle
public boolean enabled = false;

@Expose
@ConfigLink(owner = FerocityDisplayConfig.class, field = "enabled")
public Position position = new Position(10, 80, false, true);
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
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.ConfigEditorText;
import io.github.notenoughupdates.moulconfig.annotations.ConfigLink;
import io.github.notenoughupdates.moulconfig.annotations.ConfigOption;

Expand Down Expand Up @@ -43,6 +44,22 @@ public class HoppityEggsConfig {
@FeatureToggle
public boolean showClaimedEggs = false;

@Expose
@ConfigOption(name = "Warn When Unclaimed", desc = "Warn when all three eggs are ready to be found.")
@ConfigEditorBoolean
@FeatureToggle
public boolean warnUnclaimedEggs = false;

@Expose
@ConfigOption(name = "Click to Warp", desc = "Makes the eggs ready chat message clickable to warp you to an island.")
@ConfigEditorBoolean
public boolean warpUnclaimedEggs = false;

@Expose
@ConfigOption(name = "Warp Destination", desc = "A custom island to warp to in the above option.")
@ConfigEditorText
public String warpDestination = "nucleus";

@Expose
@ConfigOption(name = "Show during Contest", desc = "Show during a farming contest.")
@ConfigEditorBoolean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class ChumBucketHiderConfig {
@ConfigOption(name = "Enable", desc = "Hide the Chum/Chumcap Bucket name tags for other players.")
@ConfigEditorBoolean
@FeatureToggle
public Property<Boolean> enabled = Property.of(true);
public Property<Boolean> enabled = Property.of(false);

@Expose
@ConfigOption(name = "Hide Bucket", desc = "Hide the Chum/Chumcap Bucket.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ public enum MilestoneTextEntry implements HasLegacyId {
MILESTONE_TIER("§7Pumpkin Tier 22", 1),
NUMBER_OUT_OF_TOTAL("§e12,300§8/§e100,000", 2),
TIME("§7In §b12m 34s", 3),
CROPS_PER_SECOND("§7Crops/Second§8: §e205.75"),
CROPS_PER_MINUTE("§7Crops/Minute§8: §e12,345", 4),
CROPS_PER_HOUR("§7Crops/Hour§8: §e740,700"),
BLOCKS_PER_SECOND("§7Blocks/Second§8: §e19.85", 5),
PERCENTAGE("§7Percentage: §e12.34%", 6),
;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,10 @@ public class AuctionHouseConfig {
)
@ConfigEditorKeybind(defaultKey = Keyboard.KEY_NONE)
public int copyUnderbidKeybind = Keyboard.KEY_NONE;

@Expose
@ConfigOption(name = "Price Website", desc = "Adds a button to the Auction House that will open the item page in §csky.coflnet.com§7.")
@ConfigEditorBoolean
@FeatureToggle
public boolean openPriceWebsite = false;
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ public String toString() {
}

@Expose
@ConfigOption(name = "Perfect Enchantment Color", desc = "The color an enchantment will be at max level.")
@ConfigOption(name = "Perfect Enchantment Color", desc = "The color an enchantment will be at max level. " +
"§eIf SkyHanni chroma is disabled this will default to §6Gold.")
@ConfigEditorDropdown
public Property<LorenzColor> perfectEnchantColor = Property.of(LorenzColor.CHROMA);

Expand Down
Loading

0 comments on commit cffab32

Please sign in to comment.