From a8df95acceea286546d1849e381c7835283ea227 Mon Sep 17 00:00:00 2001 From: Xevion Date: Wed, 8 May 2024 22:30:40 -0500 Subject: [PATCH 1/3] fix: growth state renders 100% after growth/sowing at night --- .../Buildings/Building_DenseHydroponicsBasin.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Source/HydroponicsExpanded/Buildings/Building_DenseHydroponicsBasin.cs b/Source/HydroponicsExpanded/Buildings/Building_DenseHydroponicsBasin.cs index 0d0da4c..e8e23e1 100644 --- a/Source/HydroponicsExpanded/Buildings/Building_DenseHydroponicsBasin.cs +++ b/Source/HydroponicsExpanded/Buildings/Building_DenseHydroponicsBasin.cs @@ -74,11 +74,17 @@ namespace HydroponicsExpanded { // If the maximum capacity is reached, then we should move to the growing stage. if (capacityReached) { + Stage = HydroponicsStage.Grow; + // Some plants might have been skipped, so go back and kill anything still on top. foreach (Plant plant in PlantsOnMe) plant.Destroy(); + + // Play the sound effect to signal the transition to the grow stage. SoundDefOf.CryptosleepCasket_Accept.PlayOneShot(new TargetInfo(Position, Map)); - Stage = HydroponicsStage.Grow; + + // Set the highest growth to the tracked plant's growth, to ensure the bar is accurate. + _highestGrowth = ((Plant)_innerContainer[0]).Growth; // Some active sowing jobs may be in progress for pathing, and thus will sow plants AFTER the stage // transition is made. This results in some weird looking random plants very rarely. From 84adf2f6665a4cc13dc77a5243ae088df2f6e451 Mon Sep 17 00:00:00 2001 From: Xevion Date: Wed, 8 May 2024 22:32:10 -0500 Subject: [PATCH 2/3] fix: compact hydroponics require high density research --- Defs/Buildings/compact.xml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Defs/Buildings/compact.xml b/Defs/Buildings/compact.xml index a17b301..1389d5f 100644 --- a/Defs/Buildings/compact.xml +++ b/Defs/Buildings/compact.xml @@ -38,6 +38,9 @@ 12 + +
  • HE_HighDensityHydroponics
  • +
    \ No newline at end of file From ef5608dc0cb358f14e74f2bff3e2d8994d960715 Mon Sep 17 00:00:00 2001 From: Xevion Date: Wed, 8 May 2024 22:54:36 -0500 Subject: [PATCH 3/3] minor: update mod version to 0.2.2 --- About/About.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/About/About.xml b/About/About.xml index ccef13f..0945b3d 100644 --- a/About/About.xml +++ b/About/About.xml @@ -7,6 +7,6 @@
  • 1.5
  • - 0.2.1 + 0.2.2 https://github.com/Xevion/RimWorld-Hydroponics-Expanded \ No newline at end of file