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

◆ AddWetnessToItem()

void AddWetnessToItem ( ItemBase item,
float amount )
protected

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

2290 {
2291 float wetness = item.GetWet();
2292 wetness = wetness + amount;
2293 wetness = Math.Clamp(wetness, 0, 1); //wetness <0-1>
2294 item.SetWet(wetness);
2295 }
Определения 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().