feat(agent): add damage function