diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-03-02 23:32:56 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-03-02 23:32:56 +0100 |
commit | a7d9fd3854afc79b9bef65339ec0f228131286fd (patch) | |
tree | 365a7b716bed79aea1b74ee59e26b35f5a7935b2 /src/main | |
parent | 41569dd71eb070297195a3add9b64993d4a952c0 (diff) | |
download | skyhanni-a7d9fd3854afc79b9bef65339ec0f228131286fd.tar.gz skyhanni-a7d9fd3854afc79b9bef65339ec0f228131286fd.tar.bz2 skyhanni-a7d9fd3854afc79b9bef65339ec0f228131286fd.zip |
Added bingo card data to /shdebug.
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/bingo/BingoAPI.kt | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/bingo/BingoAPI.kt b/src/main/java/at/hannibal2/skyhanni/features/bingo/BingoAPI.kt index 037233772..fc884c91d 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/bingo/BingoAPI.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/bingo/BingoAPI.kt @@ -4,6 +4,7 @@ import at.hannibal2.skyhanni.config.Storage.PlayerSpecific.BingoSession import at.hannibal2.skyhanni.data.ProfileStorageData import at.hannibal2.skyhanni.data.jsonobjects.repo.BingoJson import at.hannibal2.skyhanni.data.jsonobjects.repo.BingoRanksJson +import at.hannibal2.skyhanni.events.DebugDataCollectEvent import at.hannibal2.skyhanni.events.RepositoryReloadEvent import at.hannibal2.skyhanni.features.bingo.card.goals.BingoGoal import at.hannibal2.skyhanni.features.bingo.card.goals.GoalType @@ -33,6 +34,37 @@ object BingoAPI { ) @SubscribeEvent + fun onDebugDataCollect(event: DebugDataCollectEvent) { + event.title("Bingo Card") + + if (!LorenzUtils.isBingoProfile) { + event.addIrrelevant("not on bingo") + return + } + + event.addData { + add("bingoGoals: ${bingoGoals.size}") + for (bingoGoal in bingoGoals) { + val goal = bingoGoal.value + add(" type: '${goal.type}'") + add(" displayName: '${goal.displayName}'") + add(" description: '${goal.description}'") + add(" guide: '${goal.guide}'") + add(" done: '${goal.done}'") + add(" highlight: '${goal.highlight}'") + add(" communtyGoalPercentage: '${goal.communtyGoalPercentage}'") + val hiddenGoalData = goal.hiddenGoalData + add(" hiddenGoalData") + add(" unknownTip: '${hiddenGoalData.unknownTip}'") + add(" nextHintTime: '${hiddenGoalData.nextHintTime}'") + add(" tipNote: '${hiddenGoalData.tipNote}'") + add(" ") + + } + } + } + + @SubscribeEvent fun onRepoReload(event: RepositoryReloadEvent) { ranks = event.getConstant<BingoRanksJson>("BingoRanks").ranks data = event.getConstant<BingoJson>("Bingo").bingo_tips |