aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features
diff options
context:
space:
mode:
authorCalMWolfs <94038482+CalMWolfs@users.noreply.github.com>2024-08-11 23:02:03 +1000
committerGitHub <noreply@github.com>2024-08-11 15:02:03 +0200
commit39566c78d07f15e57f0ea9a5fa37f22dd277c97c (patch)
treeaea2f96312ee14e658d97603254752aedf14fb4f /src/main/java/at/hannibal2/skyhanni/features
parent12f434e64c9dc86ccbd1d120e156eae5ec983026 (diff)
downloadskyhanni-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')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt8
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/visitor/VisitorReward.kt1
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() }