From 39566c78d07f15e57f0ea9a5fa37f22dd277c97c Mon Sep 17 00:00:00 2001 From: CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> Date: Sun, 11 Aug 2024 23:02:03 +1000 Subject: Add copper dye to block visitor rewards (#2329) Co-authored-by: not-a-cow --- .../skyhanni/features/garden/visitor/GardenVisitorFeatures.kt | 8 ++++++++ .../hannibal2/skyhanni/features/garden/visitor/VisitorReward.kt | 1 + 2 files changed, 9 insertions(+) (limited to 'src/main/java/at/hannibal2/skyhanni/features/garden') diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt index 73384c9f0..fef28450f 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt @@ -729,6 +729,14 @@ object GardenVisitorFeatures { drops } + event.transform(54, "garden.visitors.rewardWarning.drops") { element -> + val drops = JsonArray() + for (entry in element.asJsonArray) { + drops.add(JsonPrimitive(entry.asString)) + } + drops.add(JsonPrimitive(VisitorReward.COPPER_DYE.name)) + drops + } event.transform(15, "garden.visitors.highlightStatus") { element -> ConfigUtils.migrateIntToEnum(element, HighlightMode::class.java) diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/VisitorReward.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/VisitorReward.kt index 76ef14237..048876c72 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/VisitorReward.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/VisitorReward.kt @@ -20,6 +20,7 @@ enum class VisitorReward( CULTIVATING("CULTIVATING;1", "§9Cultivating I", legacyId = 6), REPLENISH("REPLENISH;1", "§9Replenish I", legacyId = 7), DELICATE("DELICATE;5", "§9Delicate V"), + COPPER_DYE("DYE_COPPER", "§8Copper Dye"), ; private val internalName by lazy { rawInternalName.asInternalName() } -- cgit