libfic: implement more dependancies kind

This commit is contained in:
nemunaire 2019-01-16 06:02:06 +01:00
commit 5d31ac6e04
5 changed files with 93 additions and 8 deletions

View file

@ -232,6 +232,11 @@ func MyJSONTeam(t *Team, started bool) (interface{}, error) {
return nil, err
} else {
for _, mcq := range mcqs {
if t != nil && !t.CanSeeFlag(mcq) {
// Dependancy missing, skip the flag for now
continue
}
m := myTeamMCQ{
Title: mcq.Title,
Choices: map[int64]interface{}{},