Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make training depends and can_award arrays #908

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

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.

None yet

2 participants