E2-waite / Shadowvale

https://haztech-games.itch.io/shadowvale
0 stars 0 forks source link

Rarity function #38

Open E2-waite opened 3 years ago

E2-waite commented 3 years ago

Choosing object based on rarity:

This can allow for different rarity values in different areas with different rarity values.

E2-waite commented 3 years ago

Use: List<int> listFullOfInts = Enumerable.Repeat(42, 50).ToList();

and listFullOfInts.AddRange(Enumerable.Repeat(42, 50));