So working on a rpg style game where the character can loot, use and equip items, I have come to a point where I am not sure how to proceed.
Up till now, I simply have several data tables holding data for items, where one of those data columns is an array of a struct which holds a stat and a value. So each stat must be of at least that value.
While this may be the most common type of requirement to fulfill, I want there to be others too. For example:
Must wear a magic hat.
Must have x Talent.
Must have x effect running.
Must be 3 inches tall.
Must have a banana in the inventory.
May not have x equipped.
Of course, these kind of checks are not very compatible with a stat-value struct. So how should I go about making a system to make the requirements more diverse?
Would love to hear any thoughts especially if someone has experience with this.