Replaced damage::basic_list class with a function