adds loot drop function, see comment