]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix Long Produce Time After De-aging A Plant with cryoxadone. (#34668)
authorBenjamin Velliquette <32338704+bVelliquette@users.noreply.github.com>
Sat, 19 Apr 2025 13:43:05 +0000 (09:43 -0400)
committerGitHub <noreply@github.com>
Sat, 19 Apr 2025 13:43:05 +0000 (09:43 -0400)
Update LastProduce when deaging plant from cryoxadone

Content.Server/EntityEffects/Effects/PlantMetabolism/PlantCryoxadone.cs

index 7fe4b7a1707b16e9b032f9d1b6bd6417636b7ff4..8a143ea5d5029bfb34238bfe875a7ba3bd6d1cff 100644 (file)
@@ -24,6 +24,7 @@ public sealed partial class PlantCryoxadone : EntityEffect
         else
             deviation = (int) (seed.Maturation / seed.GrowthStages);
         plantHolderComp.Age -= deviation;
+        plantHolderComp.LastProduce = plantHolderComp.Age;
         plantHolderComp.SkipAging++;
         plantHolderComp.ForceUpdate = true;
     }