Simplified formula for expressions with functions and corrected item_bonus.txt.