2299 {
2300 float wetness = item.GetWet();
2301 wetness = wetness + amount;
2303 item.SetWet(wetness);
2304 }
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'.