diff --git a/About/About.xml b/About/About.xml
index 0945b3d..38fb067 100644
--- a/About/About.xml
+++ b/About/About.xml
@@ -7,6 +7,6 @@
1.5
- 0.2.2
+ 0.2.3
https://github.com/Xevion/RimWorld-Hydroponics-Expanded
\ No newline at end of file
diff --git a/Languages/English/Keyed/HighDensityHydro.xml b/Languages/English/Keyed/HighDensityHydro.xml
index 7cc4073..1e2f22d 100644
--- a/Languages/English/Keyed/HighDensityHydro.xml
+++ b/Languages/English/Keyed/HighDensityHydro.xml
@@ -6,4 +6,5 @@
Waiting for all plants to be harvested.
Occupied Plant Bays
Growth
+ resting
\ No newline at end of file
diff --git a/Source/HydroponicsExpanded/Buildings/Building_DenseHydroponicsBasin.cs b/Source/HydroponicsExpanded/Buildings/Building_DenseHydroponicsBasin.cs
index e8e23e1..e18d2e4 100644
--- a/Source/HydroponicsExpanded/Buildings/Building_DenseHydroponicsBasin.cs
+++ b/Source/HydroponicsExpanded/Buildings/Building_DenseHydroponicsBasin.cs
@@ -114,8 +114,7 @@ namespace HydroponicsExpanded {
}
// Temperature & time of day check.
- float temperature = Position.GetTemperature(Map);
- if (temperature.Between(10f, 42f) && GenLocalDate.DayPercent(this).Between(0.25f, 0.8f)) {
+ if (IsResting() == false) {
float growthAmount = 1f / (60_000f * growthTrackingPlant.def.plant.growDays) * 250f;
// Debug gizmo can set growth to 100%, thus Math.min check here.
@@ -129,10 +128,16 @@ namespace HydroponicsExpanded {
Stage = HydroponicsStage.Harvest;
}
- private void HarvestTick() {
- // var plantsLeft = _innerContainer.Count;
- // var potentialCellCount = this.OccupiedRect().Area;
+ ///
+ /// Determines whether the hydroponics basin is in a resting state.
+ ///
+ /// true if the hydroponics basin is in a resting state; otherwise, false.
+ private bool IsResting() {
+ float temperature = Position.GetTemperature(Map);
+ return !(temperature.Between(10f, 42f) && GenLocalDate.DayPercent(this).Between(0.25f, 0.8f));
+ }
+ private void HarvestTick() {
// Try to place every plant in the container in any cell.
foreach (Thing nextInnerThing in _innerContainer) {
var nextPlant = (Plant)nextInnerThing;
@@ -291,6 +296,10 @@ namespace HydroponicsExpanded {
if (_innerContainer.Count > 0) {
inspectString += "\n";
inspectString += "HydroponicsExpanded.Growth".Translate() + $": {_highestGrowth * 100f:#0}%";
+
+ if (IsResting()) {
+ inspectString += " (" + "HydroponicsExpanded.Resting".Translate() + ")";
+ }
}
return inspectString;
diff --git a/Source/HydroponicsExpanded/Properties/AssemblyInfo.cs b/Source/HydroponicsExpanded/Properties/AssemblyInfo.cs
index 3f0d8b5..fcd851b 100644
--- a/Source/HydroponicsExpanded/Properties/AssemblyInfo.cs
+++ b/Source/HydroponicsExpanded/Properties/AssemblyInfo.cs
@@ -9,7 +9,7 @@ using System.Runtime.InteropServices;
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("HydroponicsExpanded")]
-[assembly: AssemblyCopyright("Copyright © 2023")]
+[assembly: AssemblyCopyright("Copyright © 2023")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]