4 int m_SmallFireplaceTemperatureMax;
5 int m_NormalFireplaceTemperatureMax;
11 m_SmallFireplaceTemperatureMax = 0;
12 m_NormalFireplaceTemperatureMax = 0;
16 void SetSmallFireplaceTemperatureMax(
int value)
18 m_SmallFireplaceTemperatureMax = value;
21 void SetNormalFireplaceTemperatureMax(
int value)
23 m_NormalFireplaceTemperatureMax = value;
26 void SetFuelCount(
int value)
31 void SetCurrentTemperature(
float temperature)
34 if (m_FuelCount == 0 || temperature <= m_SmallFireplaceTemperatureMax)
36 temperature =
Math.Clamp(temperature, 0, m_SmallFireplaceTemperatureMax);
40 temperature =
Math.Clamp(temperature, 0, m_NormalFireplaceTemperatureMax);
51 if (pSettings.m_AffectStat)
54 pSettings.m_Parent.SetTemperature(m_Temperature);