From b66728511579381e3ea8630bd532d91a359c683c Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Mon, 16 Jan 2023 12:43:36 +0100 Subject: Changed design of render text. --- .../features/nether/reputationhelper/dailyquest/DailyQuestHelper.kt | 6 +++--- .../nether/reputationhelper/miniboss/DailyMiniBossHelper.kt | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni') diff --git a/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/dailyquest/DailyQuestHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/dailyquest/DailyQuestHelper.kt index 48854884e..340a55935 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/dailyquest/DailyQuestHelper.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/dailyquest/DailyQuestHelper.kt @@ -204,16 +204,16 @@ class DailyQuestHelper(val reputationHelper: CrimsonIsleReputationHelper) { val done = quests.count { it.state == QuestState.COLLECTED } // val sneaking = Minecraft.getMinecraft().thePlayer.isSneaking // if (done != 5 || sneaking) { + display.add("") + display.add("Daily Quests ($done/5 collected)") if (done != 5) { - display.add("") - display.add("Daily Quests ($done/5 collected)") for (quest in quests) { // if (!sneaking) { // if (quest.state == QuestState.COLLECTED) { // continue // } // } - display.add(renderQuest(quest)) + display.add(" " + renderQuest(quest)) } } } diff --git a/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/miniboss/DailyMiniBossHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/miniboss/DailyMiniBossHelper.kt index 14892dff6..734b97daa 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/miniboss/DailyMiniBossHelper.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/miniboss/DailyMiniBossHelper.kt @@ -55,12 +55,12 @@ class DailyMiniBossHelper(private val reputationHelper: CrimsonIsleReputationHel display.add("") display.add("Daily Bosses ($done/5 killed)") for (miniBoss in miniBosses) { - display.add(renderQuest(miniBoss)) + display.add(" " + renderBoss(miniBoss)) } } } - private fun renderQuest(miniBoss: CrimsonMiniBoss): String { + private fun renderBoss(miniBoss: CrimsonMiniBoss): String { val color = if (miniBoss.doneToday) "§7Done" else "§bTodo" val displayName = miniBoss.displayName return "$displayName: $color" -- cgit