Refactored the take damage function. Also, expanded prod to work on sleepers and other objects.