2290 {
2291 float wetness = item.GetWet();
2292 wetness = wetness + amount;
2294 item.SetWet(wetness);
2295 }
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'.