This needs to be inverted

This commit is contained in:
Hamcha 2019-05-31 01:29:22 +02:00
parent 3b3c75adfd
commit 427f014cff
Signed by: hamcha
GPG key ID: A40413D21021EAEE

View file

@ -48,7 +48,7 @@ func MakePack(schema PackSchema) Pack {
var chosenProb = rand.Float32() var chosenProb = rand.Float32()
for _, alt := range slot.Alternate { for _, alt := range slot.Alternate {
currentProb += alt.Probability currentProb += alt.Probability
if chosenProb > currentProb { if currentProb > chosenProb {
provider = alt.Provider provider = alt.Provider
break break
} }