Removed type_id and some unused variables from @autoloottype