2315 {
2316 float wetness = item.GetWet();
2317 wetness = wetness + amount;
2319 item.SetWet(wetness);
2320 }
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'.