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