From 7b3ed85d171c156f895fdbaeff4d18572fc0f18e Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal002@users.noreply.github.com> Date: Sat, 6 Jul 2024 08:08:52 +0200 Subject: Backend: Fixed typos everywhere (#2175) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- .../at/hannibal2/skyhanni/features/bingo/card/BingoCardReader.kt | 6 +++--- .../at/hannibal2/skyhanni/features/bingo/card/goals/BingoGoal.kt | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features/bingo') 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): Double? { + private fun readCommunityGoalPercentage(lore: List): 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 } -- cgit