implement solo quest progression flags
This commit is contained in:
@@ -2287,7 +2287,7 @@ static void on_10(shared_ptr<Client> c, uint16_t, uint32_t, string& data) {
|
||||
send_lobby_message_box(c, "$C6Your level is too\nhigh to join this\ngame.");
|
||||
break;
|
||||
}
|
||||
if (game->quest && !c->can_access_quest(game->quest, game->difficulty)) {
|
||||
if (game->quest && !c->can_play_quest(game->quest, game->difficulty)) {
|
||||
send_lobby_message_box(c, "$C6You don't have access\nto the quest in progress\nin this game.");
|
||||
break;
|
||||
}
|
||||
@@ -2370,7 +2370,7 @@ static void on_10(shared_ptr<Client> c, uint16_t, uint32_t, string& data) {
|
||||
send_lobby_message_box(c, "$C6A quest is already\nin progress.");
|
||||
break;
|
||||
}
|
||||
if (!l->quest_include_condition()(q)) {
|
||||
if (l->quest_include_condition()(q) != QuestIndex::IncludeState::AVAILABLE) {
|
||||
send_lobby_message_box(c, "$C6This quest has not\nbeen unlocked for\nall players in this\ngame.");
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user