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

◆ AddWetnessToItem()

void AddWetnessToItem ( ItemBase item,
float amount )
protected

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

2297 {
2298 float wetness = item.GetWet();
2299 wetness = wetness + amount;
2300 wetness = Math.Clamp(wetness, 0, 1); //wetness <0-1>
2301 item.SetWet(wetness);
2302 }
Определения 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().