Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Quiver Display #1190

Merged
merged 51 commits into from
Apr 13, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
cea67a7
use quiver item for quiverapi
ItsEmpa Mar 15, 2024
9cc2852
added quiver display and removed unnecessary imports
ItsEmpa Mar 16, 2024
8cd9257
merge beta
ItsEmpa Mar 16, 2024
e49951a
formatting
ItsEmpa Mar 16, 2024
c728f5c
fixed rendering while in inventory
ItsEmpa Mar 16, 2024
db0e889
added/edited some patterns
ItsEmpa Mar 16, 2024
7ade58a
quiver update event, only show type of arrow when wearing skeleton ma…
ItsEmpa Mar 16, 2024
63b35d8
Merge branch 'beta' into quiver-api
ItsEmpa Mar 16, 2024
fddc845
remove sound distance and cleanup
ItsEmpa Mar 16, 2024
937dedb
updated regex and added new config option
ItsEmpa Mar 17, 2024
8857ba8
only check bow in inventory every 2s
ItsEmpa Mar 17, 2024
ea14fc2
formatting issue when no arrow selected
ItsEmpa Mar 17, 2024
ee87832
alert when low arrors at end of dungeon
ItsEmpa Mar 17, 2024
8c5f8dd
innit
ItsEmpa Mar 18, 2024
835123e
Merge branch 'kuudraapi' into quiver-api
ItsEmpa Mar 18, 2024
8ac0f5b
fix not compiling
ItsEmpa Mar 18, 2024
4652eae
oops
ItsEmpa Mar 18, 2024
b3a4747
Merge branch 'kuudraapi' into quiver-api
ItsEmpa Mar 18, 2024
ee14078
fix display not getting updated on profile join
ItsEmpa Mar 18, 2024
84374c6
refactored quiver notification into quiver display and added config m…
ItsEmpa Mar 18, 2024
e82d49d
removed todo thing
ItsEmpa Mar 18, 2024
988a2b1
Merge branch 'beta' into quiver-api
ItsEmpa Mar 21, 2024
176eae0
Merge branch 'beta' into quiver-api
ItsEmpa Mar 23, 2024
0a1a0f4
couple fixes and new config name/descriptions
ItsEmpa Mar 23, 2024
30ce110
switch from floats to ints
ItsEmpa Mar 23, 2024
d038e0c
cleanup
ItsEmpa Mar 24, 2024
871ea81
Merge branch 'kuudraapi' into quiver-api
ItsEmpa Mar 24, 2024
77c64f3
remove other empty line and fit rest of code
CalMWolfs Mar 24, 2024
a8fb6ae
Merge branch 'kuudraapi' into quiver-api
ItsEmpa Mar 24, 2024
6987e98
Merge branch 'beta' into quiver-api
ItsEmpa Mar 26, 2024
0d76bd5
Merge branch 'beta' into quiver-api
ItsEmpa Mar 26, 2024
e28c5d3
changed show only with bow to only show when holding a bow
ItsEmpa Mar 27, 2024
16c47c7
accidentally removed that
ItsEmpa Mar 27, 2024
c9cf790
Merge branch 'beta' into quiver-api
ItsEmpa Mar 28, 2024
65d25c4
moved configs to gui
ItsEmpa Mar 28, 2024
f4ce1dc
Merge branch 'beta' into fork/quiver-api
hannibal002 Mar 30, 2024
3cd82af
changed config to dropdown
ItsEmpa Mar 30, 2024
8ced364
moved quiver display to gui
ItsEmpa Apr 2, 2024
595241a
Merge branch 'beta' into quiver-api
ItsEmpa Apr 3, 2024
b3602fd
Merge branch 'beta' into quiver-api
ItsEmpa Apr 3, 2024
5f01737
Merge branch 'beta' into fork/quiver-api
hannibal002 Apr 4, 2024
f30b54f
move
hannibal002 Apr 4, 2024
1bc5614
Merge branch 'beta' into fork/quiver-api
hannibal002 Apr 7, 2024
bccdde1
fix merge conflicts
hannibal002 Apr 7, 2024
78ca972
hanni's changes
ItsEmpa Apr 7, 2024
0ee1841
changed config
ItsEmpa Apr 8, 2024
3368625
use rarity in reminder after run
ItsEmpa Apr 8, 2024
0edce25
Merge branch 'beta' into fork/quiver-api
hannibal002 Apr 10, 2024
52da225
fix
hannibal002 Apr 10, 2024
627353f
code cleanup
hannibal002 Apr 10, 2024
f214bcb
fix item size and config migration
ItsEmpa Apr 10, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove other empty line and fit rest of code
  • Loading branch information
CalMWolfs committed Mar 24, 2024
commit 77c64f3ff7a3a849f374fce005e7971f82664c29
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 @@ -474,11 +474,9 @@ class SkyHanniMod {
loadModule(TrackerManager)
loadModule(ScoreboardPattern)
loadModule(UtilsPatterns)
loadModule(PetAPI)
loadModule(BossbarData)
loadModule(EntityUtils)
loadModule(ChatUtils)
loadModule(KuudraAPI())

// APIs
loadModule(BazaarApi())
Expand All @@ -503,6 +501,8 @@ class SkyHanniMod {
loadModule(MayorAPI)
loadModule(SkillAPI)
loadModule(VisitorAPI)
loadModule(KuudraAPI)
loadModule(PetAPI)
loadModule(IsFishingDetection)
loadModule(LorenzUtils)
loadModule(NEUItems)
Expand Down
15 changes: 6 additions & 9 deletions src/main/java/at/hannibal2/skyhanni/features/nether/KuudraAPI.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,21 @@ import at.hannibal2.skyhanni.utils.StringUtils.matchMatcher
import at.hannibal2.skyhanni.utils.repopatterns.RepoPattern
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent

class KuudraAPI {
object KuudraAPI {

private val group = RepoPattern.group("data.kuudra")
private val patternGroup = RepoPattern.group("data.kuudra")

private val tierPattern by group.pattern(
private val tierPattern by patternGroup.pattern(
"scoreboard.tier",
" §7⏣ §cKuudra's Hollow §8\\(T(?<tier>.*)\\)"
)
private val completePattern by group.pattern(
private val completePattern by patternGroup.pattern(
"chat.complete",
"§.\\s*(?:§.)*KUUDRA DOWN!"
)

companion object {
var kuudraTier: Int? = null
fun inKuudra() = kuudraTier != null
}
var kuudraTier: Int? = null
fun inKuudra() = kuudraTier != null

@SubscribeEvent
fun onTick(event: LorenzTickEvent) {
Expand Down Expand Up @@ -66,5 +64,4 @@ class KuudraAPI {
) {
fun getDisplayName() = "Tier $tierNumber ($name)"
}

}
Loading