Skip to content

Commit c615967

Browse files
committed
feat: add 1v1 and 3v3soloQ queue in the unrated arena list, closes #13, improve 3v3soloQ name showing the queue
1 parent 426ff49 commit c615967

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/QueueListCache.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@ void QueueListCache::UpdateArenaNonRated()
125125
continue;
126126

127127
auto arenaTypeString = Acore::StringFormat("{}v{}", arenaType, arenaType);
128+
constexpr uint32 ARENA_TYPE_3v3_SOLO = 4;
129+
if (arenaType == ARENA_TYPE_3v3_SOLO) {
130+
arenaTypeString = Acore::StringFormat("3v3soloQ");
131+
}
132+
128133
uint32 playersNeed = ArenaTeam::GetReqPlayersForType(arenaType);
129134
uint32 minLevel = std::min(bracketEntry->minLevel, (uint32)80);
130135
uint32 maxLevel = std::min(bracketEntry->maxLevel, (uint32)80);
@@ -157,8 +162,9 @@ void QueueListCache::UpdateArenaNonRated()
157162
}
158163
};
159164

165+
constexpr uint32 BATTLEGROUND_QUEUE_3v3_SOLO = 12; // this allows to include queue_1v1 (battleground_queue value 11) and 3v3soloQ (12)
160166
// Non rated arena
161-
for (uint8 qtype = BATTLEGROUND_QUEUE_2v2; qtype < BATTLEGROUND_QUEUE_5v5; ++qtype)
167+
for (uint8 qtype = BATTLEGROUND_QUEUE_2v2; qtype <= BATTLEGROUND_QUEUE_3v3_SOLO; ++qtype)
162168
for (uint8 bracket = BG_BRACKET_ID_FIRST; bracket < MAX_BATTLEGROUND_BRACKETS; ++bracket)
163169
AddCache(BattlegroundQueueTypeId(qtype), BattlegroundBracketId(bracket));
164170
}

0 commit comments

Comments
 (0)