Skip to content

Commit

Permalink
additional annoying trailing comma fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hannibal002 committed Jun 9, 2024
1 parent f462089 commit 0779c9f
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@ object ProfileStorageData {
"This is needed for the mod to function! And therefore this warning cannot be disabled",
onClick = {
HypixelCommands.widget()
}
},
)
} else {
ChatUtils.chat(
"§cExtra Information from Tab list not found! " +
"Enable it: SkyBlock Menu ➜ Settings ➜ Personal ➜ User Interface ➜ Player List Info"
"Enable it: SkyBlock Menu ➜ Settings ➜ Personal ➜ User Interface ➜ Player List Info",
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ object FerocityDisplay {
*/
private val ferocityPattern by RepoPattern.pattern(
"combat.ferocity.tab",
" Ferocity: §r§c⫽(?<stat>.*)"
" Ferocity: §r§c⫽(?<stat>.*)",
)

private var display = ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,12 @@ object ComposterDisplay {
if (IslandType.GARDEN.isInIsland()) {
ChatUtils.chat(warningMessage)
} else {
ChatUtils.clickableChat(warningMessage, onClick = {
HypixelCommands.warp("garden")
})
ChatUtils.clickableChat(
warningMessage,
onClick = {
HypixelCommands.warp("garden")
},
)
}
LorenzUtils.sendTitle("§eComposter Warning!", 3.seconds)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import kotlin.time.Duration.Companion.seconds
object VisitorListener {
private val offersAcceptedPattern by RepoPattern.pattern(
"garden.visitor.offersaccepted",
"§7Offers Accepted: §a(?<offersAccepted>\\d+)"
"§7Offers Accepted: §a(?<offersAccepted>\\d+)",
)

private val config get() = VisitorAPI.config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ object VolcanoExplosivityDisplay {
*/
private val statusPattern by patternGroup.pattern(
"tablistline",
" *Volcano: (?<status>(?:§.)*\\S+)"
" *Volcano: (?<status>(?:§.)*\\S+)",
)
private var display = ""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class DailyQuestHelper(val reputationHelper: CrimsonIsleReputationHelper) {
*/
val minibossAmountPattern by RepoPattern.pattern(
"crimson.reputationhelper.quest.minibossamount",
"(?:§7Kill the §c.+ §7|.*)miniboss §a(?<amount>\\d) §7times?!"
"(?:§7Kill the §c.+ §7|.*)miniboss §a(?<amount>\\d) §7times?!",
)

private val config get() = SkyHanniMod.feature.crimsonIsle.reputationHelper
Expand Down Expand Up @@ -211,7 +211,8 @@ class DailyQuestHelper(val reputationHelper: CrimsonIsleReputationHelper) {
}

private fun Quest.needsTownBoardLocation(): Boolean = state.let { state ->
state == QuestState.READY_TO_COLLECT || state == QuestState.NOT_ACCEPTED ||
state == QuestState.READY_TO_COLLECT ||
state == QuestState.NOT_ACCEPTED ||
(this is RescueMissionQuest && state == QuestState.ACCEPTED)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,8 @@ class QuestLoader(private val dailyQuestHelper: DailyQuestHelper) {
quest.haveAmount = haveAmount
} catch (e: IndexOutOfBoundsException) {
ErrorManager.logErrorWithData(
e, "Error loading Crimson Isle Quests from config.",
e,
"Error loading Crimson Isle Quests from config.",
"text" to text,
)
}
Expand Down

0 comments on commit 0779c9f

Please sign in to comment.