mirror of
https://github.com/Xevion/RimWorld-Hydroponics-Expanded.git
synced 2025-12-06 09:16:15 -06:00
fix: IsResting inverted
This commit is contained in:
@@ -114,7 +114,7 @@ namespace HydroponicsExpanded {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Temperature & time of day check.
|
// Temperature & time of day check.
|
||||||
if (IsResting()) {
|
if (IsResting() == false) {
|
||||||
float growthAmount = 1f / (60_000f * growthTrackingPlant.def.plant.growDays) * 250f;
|
float growthAmount = 1f / (60_000f * growthTrackingPlant.def.plant.growDays) * 250f;
|
||||||
|
|
||||||
// Debug gizmo can set growth to 100%, thus Math.min check here.
|
// Debug gizmo can set growth to 100%, thus Math.min check here.
|
||||||
@@ -134,7 +134,7 @@ namespace HydroponicsExpanded {
|
|||||||
/// <returns><c>true</c> if the hydroponics basin is in a resting state; otherwise, <c>false</c>.</returns>
|
/// <returns><c>true</c> if the hydroponics basin is in a resting state; otherwise, <c>false</c>.</returns>
|
||||||
private bool IsResting() {
|
private bool IsResting() {
|
||||||
float temperature = Position.GetTemperature(Map);
|
float temperature = Position.GetTemperature(Map);
|
||||||
return temperature.Between(10f, 42f) && GenLocalDate.DayPercent(this).Between(0.25f, 0.8f);
|
return !(temperature.Between(10f, 42f) && GenLocalDate.DayPercent(this).Between(0.25f, 0.8f));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void HarvestTick() {
|
private void HarvestTick() {
|
||||||
|
|||||||
Reference in New Issue
Block a user