You could add it to the existing function.
It would probably be better to put it in a separate function like grantsSkills(), and then call it.
That code can be simplified a bit, the negative checks are not needed (if false then do nothing + if false then do nothing + if true then do something == if true then do something).
|