I am trying to spawn items in my small game based on rarity,
I have something like this
Item {
int id;
int rarity; // from 1 to 100, the higher the rare the item will be
}
Can someone point me the direction to how to spawn based on the rarity of the item.
Aucun commentaire:
Enregistrer un commentaire