That’s not a good way to code it…
Why not make the ability system just a map with strings and ints. Like this, add ability:
Take ability:
Increase ability:
Has ability: