implement solo quest progression flags

This commit is contained in:
Martin Michelsen
2023-12-08 17:01:11 -08:00
parent 009a0fc93d
commit b7bc148e09
187 changed files with 663 additions and 108 deletions
+2 -2
View File
@@ -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;
}