diff options
author | CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> | 2024-08-11 23:02:03 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-11 15:02:03 +0200 |
commit | 39566c78d07f15e57f0ea9a5fa37f22dd277c97c (patch) | |
tree | aea2f96312ee14e658d97603254752aedf14fb4f /src/main/java/at/hannibal2/skyhanni/features/garden | |
parent | 12f434e64c9dc86ccbd1d120e156eae5ec983026 (diff) | |
download | skyhanni-39566c78d07f15e57f0ea9a5fa37f22dd277c97c.tar.gz skyhanni-39566c78d07f15e57f0ea9a5fa37f22dd277c97c.tar.bz2 skyhanni-39566c78d07f15e57f0ea9a5fa37f22dd277c97c.zip |
Add copper dye to block visitor rewards (#2329)
Co-authored-by: not-a-cow <kly3aswd@gmail.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/garden')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt | 8 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/visitor/VisitorReward.kt | 1 |
2 files changed, 9 insertions, 0 deletions
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() } |