Change name of achievement function to fn_applyearnedachievements