Renamed generateLoot() function to GenerateLoot().