From 77b79e56567aae873371e8a754bb84cf71e72057 Mon Sep 17 00:00:00 2001 From: stelar7 Date: Sun, 21 Jul 2024 19:49:49 +0200 Subject: [PATCH] Update to support strawberry --- .../r4j/basic/constants/types/lol/GameModeType.java | 5 +++++ .../r4j/basic/constants/types/lol/GameQueueType.java | 2 +- .../api/r4j/basic/constants/types/lol/MapType.java | 5 +++++ .../api/r4j/tests/lol/match/MatchListV5Test.java | 12 +++++++++++- 4 files changed, 22 insertions(+), 2 deletions(-) diff --git a/src/main/java/no/stelar7/api/r4j/basic/constants/types/lol/GameModeType.java b/src/main/java/no/stelar7/api/r4j/basic/constants/types/lol/GameModeType.java index 83c57eb9..5d77f1e3 100644 --- a/src/main/java/no/stelar7/api/r4j/basic/constants/types/lol/GameModeType.java +++ b/src/main/java/no/stelar7/api/r4j/basic/constants/types/lol/GameModeType.java @@ -106,6 +106,11 @@ public enum GameModeType implements CodedEnum * TFT */ TFT, + + /** + * Vampire survivors esq + */ + STRAWBERRY, ; /** diff --git a/src/main/java/no/stelar7/api/r4j/basic/constants/types/lol/GameQueueType.java b/src/main/java/no/stelar7/api/r4j/basic/constants/types/lol/GameQueueType.java index b30a9d38..cccfaba0 100644 --- a/src/main/java/no/stelar7/api/r4j/basic/constants/types/lol/GameQueueType.java +++ b/src/main/java/no/stelar7/api/r4j/basic/constants/types/lol/GameQueueType.java @@ -286,7 +286,7 @@ public enum GameQueueType implements CodedEnum /** * Swarm */ - STRAWBERRY(1830), + STRAWBERRY(1830, 1840), /** * Tutorial games */ diff --git a/src/main/java/no/stelar7/api/r4j/basic/constants/types/lol/MapType.java b/src/main/java/no/stelar7/api/r4j/basic/constants/types/lol/MapType.java index 2c2d98d2..c021bcc8 100644 --- a/src/main/java/no/stelar7/api/r4j/basic/constants/types/lol/MapType.java +++ b/src/main/java/no/stelar7/api/r4j/basic/constants/types/lol/MapType.java @@ -80,6 +80,11 @@ public enum MapType implements CodedEnum * Arena map (2v2v2v2) */ ARENA(30, new Rectangle(0, 0, 12056, 12056)), + + /** + * Strawberry map + */ + STRAWBERRY(33, new Rectangle(0, 0, 12056, 12056)), ; diff --git a/src/test/java/no/stelar7/api/r4j/tests/lol/match/MatchListV5Test.java b/src/test/java/no/stelar7/api/r4j/tests/lol/match/MatchListV5Test.java index abfcccc3..4e7d3c63 100644 --- a/src/test/java/no/stelar7/api/r4j/tests/lol/match/MatchListV5Test.java +++ b/src/test/java/no/stelar7/api/r4j/tests/lol/match/MatchListV5Test.java @@ -215,7 +215,17 @@ public void testForMissingAttributes() public void testCherryGameMode() { LOLMatch match = LOLMatch.get(LeagueShard.EUW1, "EUW1_6507642888"); - System.out.println(); + String puuid = match.getParticipants().get(0).getPuuid(); + + MatchListBuilder builder = new MatchListBuilder(); + builder = builder.withPuuid(puuid).withPlatform(LeagueShard.EUW1); + List strings = builder.get(); + + for (String s : strings) + { + LOLMatch lolMatch = LOLMatch.get(LeagueShard.EUW1, s); + System.out.println(); + } } }