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

◆ AddWetnessToItem()

void AddWetnessToItem ( ItemBase item,
float amount )
protected

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

2315 {
2316 float wetness = item.GetWet();
2317 wetness = wetness + amount;
2318 wetness = Math.Clamp(wetness, 0, 1); //wetness <0-1>
2319 item.SetWet(wetness);
2320 }
Определения 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().