diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-05-01 17:06:09 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-05-01 17:06:09 +0200 |
commit | 2a9f8e6142238978c5aca09ed344f56bcc82162c (patch) | |
tree | a5fdab7a033437c0312d0a1a50118be5a488097b /src/main/java/at | |
parent | 1b7c19047c08659010cf97869b1e2109910f029c (diff) | |
download | skyhanni-2a9f8e6142238978c5aca09ed344f56bcc82162c.tar.gz skyhanni-2a9f8e6142238978c5aca09ed344f56bcc82162c.tar.bz2 skyhanni-2a9f8e6142238978c5aca09ed344f56bcc82162c.zip |
Command to test bingo features outside of bingo profile
Diffstat (limited to 'src/main/java/at')
4 files changed, 18 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt b/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt index ac5d0ddc8..00da1d347 100644 --- a/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt +++ b/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt @@ -68,6 +68,7 @@ import at.hannibal2.skyhanni.features.summonings.SummoningSoulsName import at.hannibal2.skyhanni.mixins.hooks.RenderLivingEntityHelper import at.hannibal2.skyhanni.test.LorenzTest import at.hannibal2.skyhanni.test.PacketTest +import at.hannibal2.skyhanni.test.TestBingo import at.hannibal2.skyhanni.utils.MinecraftConsoleFilter.Companion.initLogging import at.hannibal2.skyhanni.utils.NEUVersionCheck.checkIfNeuIsLoaded import at.hannibal2.skyhanni.utils.TabListData @@ -270,6 +271,7 @@ class SkyHanniMod { loadModule(LorenzTest()) loadModule(ButtonOnPause()) loadModule(PacketTest()) + loadModule(TestBingo) } @Mod.EventHandler diff --git a/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt b/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt index 259beee57..0981fdaa4 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt +++ b/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt @@ -17,6 +17,7 @@ import at.hannibal2.skyhanni.features.misc.CollectionCounter import at.hannibal2.skyhanni.features.misc.MarkedPlayerManager import at.hannibal2.skyhanni.test.LorenzTest import at.hannibal2.skyhanni.test.PacketTest +import at.hannibal2.skyhanni.test.TestBingo import at.hannibal2.skyhanni.test.command.CopyItemCommand import at.hannibal2.skyhanni.test.command.CopyNearbyEntitiesCommand import at.hannibal2.skyhanni.utils.APIUtil @@ -63,6 +64,7 @@ object Commands { registerCommand("shtestcomposter") { ComposterOverlay.onCommand(it) } registerCommand("shclearcropspeed") { GardenAPI.clearCropSpeed() } registerCommand("shclearminiondata") { MinionFeatures.clearMinionData() } + registerCommand("shtestbingo") { TestBingo.toggle() } } private fun registerCommand(name: String, function: (Array<String>) -> Unit) { diff --git a/src/main/java/at/hannibal2/skyhanni/test/TestBingo.kt b/src/main/java/at/hannibal2/skyhanni/test/TestBingo.kt new file mode 100644 index 000000000..f2eda2892 --- /dev/null +++ b/src/main/java/at/hannibal2/skyhanni/test/TestBingo.kt @@ -0,0 +1,12 @@ +package at.hannibal2.skyhanni.test + +import at.hannibal2.skyhanni.utils.LorenzUtils + +object TestBingo { + var testBingo = false + + fun toggle() { + testBingo = !testBingo + LorenzUtils.chat("§e[SkyHanni] Test Bingo " + (if (testBingo) "enabled" else "disabled")) + } +}
\ No newline at end of file diff --git a/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt index 7d0f817b5..71ad9edf2 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt @@ -4,6 +4,7 @@ import at.hannibal2.skyhanni.SkyHanniMod import at.hannibal2.skyhanni.data.HypixelData import at.hannibal2.skyhanni.data.IslandType import at.hannibal2.skyhanni.features.dungeon.DungeonData +import at.hannibal2.skyhanni.test.TestBingo import at.hannibal2.skyhanni.utils.StringUtils.removeColor import at.hannibal2.skyhanni.utils.StringUtils.toDashlessUUID import io.github.moulberry.notenoughupdates.mixins.AccessorGuiEditSign @@ -49,7 +50,7 @@ object LorenzUtils { get() = HypixelData.noTrade val isBingoProfile: Boolean - get() = inSkyBlock && HypixelData.bingo + get() = inSkyBlock && (HypixelData.bingo || TestBingo.testBingo) val lastWorldSwitch: Long get() = HypixelData.joinedWorld |