samspade
Member
In my game, players get upgrades at the end of a level. Currently, I put all of those upgrades into a list, shuffle the list, and then choose some at random. I'd like to implement a rarity system of some kind. My specific questions are:
Mostly looking for ideas and general structure, but if you have code lying around I'd appreciate that as well. It's been a long time since I've had a math class, so I'd also appreciate links, explanations, of the math side of this as well.
- What are some good ways to implement a rarity system?
- How do have control the percentages and so on?
- Put upgrades into pools and then pick a pool based on the rarity of that pool.
- Give each upgrade an individual rarity and pick based on the individual rarity.
Mostly looking for ideas and general structure, but if you have code lying around I'd appreciate that as well. It's been a long time since I've had a math class, so I'd also appreciate links, explanations, of the math side of this as well.