Design a Skill pool or reward pool in Dots

If skills amount is fixed
You can basically use component with skills values.

  • This allow to have fixed job, which executes all relevant skills, accessing component’s skills value.

Or having multiple components, each component hosting own skill.

  • This allows to have own job per skill.

In case your skill amount changes
You can use dynamic buffer, which uses lets say reference to the skill type, i.e. enum, and the actual value.

  • But then, you need iterate through skills in a job, and having some switch case, to execute skill.

Many ways you can do really. And these are not exhaustive.
Mostly others will propose different solutions.

2 Likes