simplified nothingChance. Fixed nothingChance not subtracting 1 from pickupCount
m (Minor clarification) |
(simplified nothingChance. Fixed nothingChance not subtracting 1 from pickupCount) |
||
pickupCount = player:GetCollectibleNum(COLLECTIBLE_CONTRACT_FROM_BELOW) + 1
--The chance of getting nothing goes down with each contract exponentially
if (nothingChance * 0.5 > rng:NextFloat()) then
pickupCount = 0
|