Add new Arena 2v2v2v2 CHERRY game mode, tests

This commit is contained in:
Mingwei Samuel 2023-07-22 22:06:17 -07:00
parent 7c0fff55ae
commit 800f9c83f4
4 changed files with 11 additions and 0 deletions

View file

@ -28,6 +28,8 @@ pub enum GameMode {
ASCENSION,
/// Blood Hunt Assassin games
ASSASSINATE,
/// 2v2v2v2
CHERRY,
/// Classic Summoner's Rift and Twisted Treeline games
CLASSIC,
/// Dark Star: Singularity games

View file

@ -18,6 +18,9 @@ use serde_repr::{Deserialize_repr, Serialize_repr};
)]
#[repr(u16)]
pub enum Team {
/// Team ID zero for 2v2v2v2 Arena `CHERRY` game mode. (TODO: SUBJECT TO CHANGE?)
ZERO = 0,
/// Blue team (bottom left on Summoner's Rift).
BLUE = 100,
/// Red team (top right on Summoner's Rift).

View file

@ -37,6 +37,10 @@ static MATCHES: &[&str] = &[
// New fields:
// `match-v5.ParticipantDto.playerAugment[1234],playerSubteamId,subteamPlacement`
"JP1_400700181",
// New field: `match-v5.ParticipantDto.placement`
"JP1_405073638",
// New ARENA 2v2v2v2 game mode, broken `subteamPlacement`
"KR_6604607115",
];
async_tests! {

View file

@ -17,6 +17,8 @@ static MATCHES: &[&str] = &[
"EUW1_5097963383",
"EUW1_5102203800", // https://github.com/MingweiSamuel/Riven/issues/36
"EUW1_5765650307", // https://gist.github.com/MingweiSamuel/d5f9dc40cc5a80a9255e488f27705c56?permalink_comment_id=4088256#gistcomment-4088256
// New ARENA 2v2v2v2 game mode
"EUW1_6511808246", // https://github.com/MingweiSamuel/Camille/issues/99
];
async_tests! {