5 protected int m_IsUnderRoof;
6 protected ref
Timer m_UpdateTimer;
7 protected const int RAIN_COEFFICIENT = 10;
11 m_ProcuringItem = procuring_item;
15 void InitRainProcurement()
17 m_IsUnderRoof = MiscGameplayFunctions.IsUnderRoof(m_ProcuringItem);
24 m_UpdateTimer.Run( 10,
this,
"RainProcurementCheck", NULL,
true );
29 void RainProcurementCheck()
31 float rain_intensity =
GetGame().GetWeather().GetRain().GetActual();
32 float fill_per_update = RAIN_COEFFICIENT * rain_intensity;
34 if ( rain_intensity > 0 )
36 if ( m_ProcuringItem.GetQuantity() < m_ProcuringItem.GetQuantityMax() )
45 StopRainProcurement();
76 void StopRainProcurement()