Fixed Loot tables

Loot tables now work for enemies, added a weight option to make better
upgrades drop less often.