Skip to content

Conversation

@markspolakovs
Copy link
Member

So my previous PR wasn't enough...

This PR switched training status dependencies to arrays of typeids instead of typeids, and makes the dependency checks use AND-logic - i.e. the depends and can_award columns will now be a list of training statuses you must have.

Will test on dev in a sec.

As part of the Great 2020 Training Reshuffle, we're adding the first training status that has multiple prerequisites. Now, I'm a lazy bastard who can't be bothered to write the code for that, so instead I'll just make that perm have no prerequisites, and instead give whoever can give it the ability to give anything ;)
So my previous PR wasn't enough...

This PR switched training status dependencies to arrays of typeids instead of typeids, and makes the dependency checks use AND-logic - i.e. the depends and can_award columns will now be a list of training statuses you must have.
Basically, if dependencies is empty, it should mean that ANYONE can be given that training, but if can_award is empty it should be NOBODY. The earlier commit had the latter backwards.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants