825 {
828
829 if (rainIntensity > 1 || rainIntensity < 0)
830 wetness = 0;
831
832 if (wetness == 0)
834
835
837 {
838 if (wetness != 0)
839 {
841 for (int i = 0; i < slotsCount; i++)
842 {
844 {
846 if (slot)
847 {
848 slot.GiveWater(wetness * Math.RandomFloat01());
849 }
850 }
851 }
852 }
853 }
854 }
proto native Weather GetWeather()
Returns weather controller object.
ref array< ref Slot > m_Slots
int GetGardenSlotsCount()
static const float RAIN_INTENSITY_THRESHOLD
static const int CHECK_RAIN_INTERVAL
proto native Rain GetRain()
Returns a rain phenomenon object.
proto native float GetActual()
proto native CGame GetGame()