I'm trying to simulate an ecosystem where each member in the system will have a list of traits that will modify base stats and/or add new ability. The first generation will only have randomly assigned traits. The next generation on will inherit 2 random trait each from both parents, and have 1 randomly assigned trait.
Stat modifiers will add or remove a number or percentage of assigned stats: strength, stamina, etc …
Abilities will add new function such as: - Jump will allow the member to use “Jump” animation, or have the “Jump” function. “Anti-poison” would allow the member to consume food items that are marked “poisonous”
The closest system I can think of is the trait system from Atelier games, a alchemy crafting game where you synthesize item that inherits traits of the recipies.
I'm going to use Unity to make the game, and C# for programming language. May I have a rough sketch of the class diagram or object diagram so I can understand how I should arrange the neccessary classes/scripts?