mirror of
https://github.com/Xevion/RimWorld-Hydroponics-Expanded.git
synced 2025-12-06 15:16:18 -06:00
@@ -7,6 +7,6 @@
|
|||||||
<supportedVersions>
|
<supportedVersions>
|
||||||
<li>1.5</li>
|
<li>1.5</li>
|
||||||
</supportedVersions>
|
</supportedVersions>
|
||||||
<modVersion>0.2.1</modVersion>
|
<modVersion>0.2.2</modVersion>
|
||||||
<url>https://github.com/Xevion/RimWorld-Hydroponics-Expanded</url>
|
<url>https://github.com/Xevion/RimWorld-Hydroponics-Expanded</url>
|
||||||
</ModMetaData>
|
</ModMetaData>
|
||||||
@@ -38,6 +38,9 @@
|
|||||||
<capacity>12</capacity>
|
<capacity>12</capacity>
|
||||||
</li>
|
</li>
|
||||||
</modExtensions>
|
</modExtensions>
|
||||||
|
<researchPrerequisites>
|
||||||
|
<li>HE_HighDensityHydroponics</li>
|
||||||
|
</researchPrerequisites>
|
||||||
</ThingDef>
|
</ThingDef>
|
||||||
|
|
||||||
</Defs>
|
</Defs>
|
||||||
@@ -74,11 +74,17 @@ namespace HydroponicsExpanded {
|
|||||||
|
|
||||||
// If the maximum capacity is reached, then we should move to the growing stage.
|
// If the maximum capacity is reached, then we should move to the growing stage.
|
||||||
if (capacityReached) {
|
if (capacityReached) {
|
||||||
|
Stage = HydroponicsStage.Grow;
|
||||||
|
|
||||||
// Some plants might have been skipped, so go back and kill anything still on top.
|
// Some plants might have been skipped, so go back and kill anything still on top.
|
||||||
foreach (Plant plant in PlantsOnMe)
|
foreach (Plant plant in PlantsOnMe)
|
||||||
plant.Destroy();
|
plant.Destroy();
|
||||||
|
|
||||||
|
// Play the sound effect to signal the transition to the grow stage.
|
||||||
SoundDefOf.CryptosleepCasket_Accept.PlayOneShot(new TargetInfo(Position, Map));
|
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
|
// 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.
|
// transition is made. This results in some weird looking random plants very rarely.
|
||||||
|
|||||||
Reference in New Issue
Block a user