diff options
| author | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2024-07-06 08:08:52 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-06 08:08:52 +0200 |
| commit | 7b3ed85d171c156f895fdbaeff4d18572fc0f18e (patch) | |
| tree | 0bbfeca0a796bdd6494548f9f161edbc7fb6b700 /src/main/java/at/hannibal2/skyhanni/features/bingo | |
| parent | 34ba8c5fb8304e7b568822f8d3f675a0f133c6da (diff) | |
| download | skyhanni-7b3ed85d171c156f895fdbaeff4d18572fc0f18e.tar.gz skyhanni-7b3ed85d171c156f895fdbaeff4d18572fc0f18e.tar.bz2 skyhanni-7b3ed85d171c156f895fdbaeff4d18572fc0f18e.zip | |
Backend: Fixed typos everywhere (#2175)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/bingo')
| -rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/bingo/card/BingoCardReader.kt | 6 | ||||
| -rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/bingo/card/goals/BingoGoal.kt | 3 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/bingo/card/BingoCardReader.kt b/src/main/java/at/hannibal2/skyhanni/features/bingo/card/BingoCardReader.kt index b04a081ea..1afa6859d 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/bingo/card/BingoCardReader.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/bingo/card/BingoCardReader.kt @@ -73,7 +73,7 @@ object BingoCardReader { } val done = lore.any { it.contains("GOAL REACHED") } - val communtyGoalPercentage = readCommuntyGoalPercentage(lore) + val communityGoalPercentage = readCommunityGoalPercentage(lore) val hiddenGoalData = getHiddenGoalData(name, description, goalType) val visualDescription = hiddenGoalData.tipNote @@ -89,7 +89,7 @@ object BingoCardReader { this.done = done this.hiddenGoalData = hiddenGoalData } - communtyGoalPercentage?.let { + communityGoalPercentage?.let { bingoGoalDifference(bingoGoal, it) bingoGoal.communtyGoalPercentage = it } @@ -111,7 +111,7 @@ object BingoCardReader { ChatUtils.chat("$color${bingoGoal.displayName}: $oldFormat §b->" + " $newFormat") } - private fun readCommuntyGoalPercentage(lore: List<String>): Double? { + private fun readCommunityGoalPercentage(lore: List<String>): Double? { for (line in lore) { percentagePattern.matchMatcher(line) { return group("percentage").toDouble() / 100 diff --git a/src/main/java/at/hannibal2/skyhanni/features/bingo/card/goals/BingoGoal.kt b/src/main/java/at/hannibal2/skyhanni/features/bingo/card/goals/BingoGoal.kt index daccd37e3..64148115d 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/bingo/card/goals/BingoGoal.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/bingo/card/goals/BingoGoal.kt @@ -25,8 +25,9 @@ class BingoGoal { @Expose lateinit var hiddenGoalData: HiddenGoalData + // TODO rename communityGoalPercentage @Expose - var communtyGoalPercentage: Double? = null // TODO fix typo (Needs changes inside of storage) + var communtyGoalPercentage: Double? = null override fun toString(): String = displayName } |
