Added a function to calculate loot chance

-TODO: add other factors