From 50ef07052e801abfe59f192820ea26eb5fb04822 Mon Sep 17 00:00:00 2001 From: Bishop Date: Sun, 8 Feb 2026 12:55:59 +0000 Subject: [PATCH] Fixed spirit weed falsely appearing diseased while planted in the disease-free herb patch --- Server/src/main/content/global/skill/farming/Patch.kt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Server/src/main/content/global/skill/farming/Patch.kt b/Server/src/main/content/global/skill/farming/Patch.kt index eacc91bde..7e8070681 100644 --- a/Server/src/main/content/global/skill/farming/Patch.kt +++ b/Server/src/main/content/global/skill/farming/Patch.kt @@ -209,7 +209,15 @@ class Patch(val player: Player, val patch: FarmingPatch, var plantable: Plantabl PatchType.HERB_PATCH -> { if(isDead) setVisualState(getHerbDeathValue()) else if(isDiseased && !isDead) setVisualState(getHerbDiseaseValue()) - else setVisualState((plantable?.value ?: 0) + currentGrowthStage) + else { + var state = (plantable?.value ?: 0) + currentGrowthStage + // Spirit Weed contains states with bits 0x40 and 0x80 set, which the disease-free patch scenery interprets as watered/dead + // Visually transmogrifies Spirit Weed (204-208) into Guam (4-8) while it's planted in the disease-free patch + if (patch == FarmingPatch.TROLL_STRONGHOLD_HERB && plantable == Plantable.SPIRIT_WEED_SEED) { + state = 4 + currentGrowthStage + } + setVisualState(state) + } } PatchType.MUSHROOM_PATCH -> { if(isDead) setVisualState(getMushroomDeathValue())