From 345bfc06e44bc0d76cfd540e2e2863377b126bc5 Mon Sep 17 00:00:00 2001 From: Xrmanser <56756129+Xrmanser@users.noreply.github.com> Date: Sun, 30 Nov 2025 22:26:07 +0300 Subject: [PATCH] Fix grafting not applying stats when trait is rejected (#94188) ## About The Pull Request Instead of stopping the function when the grafted trait is rejected I set `new_trait` to `null` This allows the stat adjustments to always apply The function still returns the trait or null so the tray can show the correct message ## Why It's Good For The Game fix https://github.com/tgstation/tgstation/issues/94060 --- code/modules/hydroponics/seeds.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/hydroponics/seeds.dm b/code/modules/hydroponics/seeds.dm index f470206e8fd..b0a4364d332 100644 --- a/code/modules/hydroponics/seeds.dm +++ b/code/modules/hydroponics/seeds.dm @@ -570,7 +570,7 @@ if(new_trait?.can_add(src)) genes += new_trait else - return + new_trait = null // Adjust stats based on graft stats set_lifespan(round(max(lifespan, (lifespan + (2/3)*(snip.plant_dna.lifespan - lifespan)))))