summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/bingo
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/bingo')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/bingo/card/BingoCardReader.kt6
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/bingo/card/goals/BingoGoal.kt3
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
}