Page 2 of 2

Re: Efficient way of distributing items

Posted: Fri Aug 05, 2022 6:15 pm
by pgimeno
It's actually the OP who posted an example that used accumulated weights. I think milon just translated that code so that the same weights came from a table instead of a chain of if's. From that point of view, the choice of wording, "rarity", wasn't too good.

Re: Efficient way of distributing items

Posted: Sat Aug 06, 2022 7:38 am
by Gunroar:Cannon()
milon wrote: Thu Aug 04, 2022 6:01 pm. That's the general idea behind weighted randoms. Does that help clarify?
Yeah, that makes it clearer.