Fix bugs and adjust Pebble effects

Made slight adjustments to some Pebble effects, modified "damage_npc" to
return the amount of damage dealt, removed an erroneous function call
from "player_is_visible_from", fixed some constant names/values, and
updated some comments.