simple alteration to allow for negative damage (repair). 

This does expose a small miscalculation with damageradius, where the numbers could go negative with large destructible objects. As it's a percentile, clamped it from 0 to 1.