DayZ 1.29
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ AddWetnessToItem()

void AddWetnessToItem ( ItemBase item,
float amount )
protected

См. определение в файле FireplaceBase.c строка 2298

2299 {
2300 float wetness = item.GetWet();
2301 wetness = wetness + amount;
2302 wetness = Math.Clamp(wetness, 0, 1); //wetness <0-1>
2303 item.SetWet(wetness);
2304 }
Определения EnMath.c:7
static proto float Clamp(float value, float min, float max)
Clamps 'value' to 'min' if it is lower than 'min', or to 'max' if it is higher than 'max'.

Перекрестные ссылки Math::Clamp().

Используется в BurnItemsInFireplace().