Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(match2): Add non-BR support for Fortnite #5244

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Hesketh2
Copy link
Collaborator

@Hesketh2 Hesketh2 commented Dec 24, 2024

Summary

I want it like how TFT is able to display both Brackets and Battle Royale together. So like #5196 in reverse

I'm starting with using TFT's setup as basis, because I never edit BR-related match2 yet

Side Note

things like OPPONENT_CONFIG on matchFunctions is carried from FN's current setup

FN doesnt really have a strict default mode (FOR BR), they changed pretty regularly (e.g. Duos in 2024, but Trios in 2025) after talking to hjp I've come to a decision to left it unset for BR

How did you test this change?

DEV https://liquipedia.net/fortnite/User:Hesketh2/Test

Test includes putting both BR and Bracket on same page with same dev on both

@Hesketh2 Hesketh2 self-assigned this Dec 24, 2024
@Hesketh2 Hesketh2 requested review from Rathoz and hjpalpha December 24, 2024 18:55
Fortnite doesn't really have a permanently set mode, because they changed all the time 

e.g. at the time of this PR competitions is in Duos, but by 2025 they are using Trios (as non team) instead (and could changed again in future)
---@param games table[]
---@return table[]
function MatchFunctions.removeUnsetMaps(games)
return Array.filter(games, function(map)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why check for map.map being set?
can it happen that it is unset in a valid map?
maybe an Logic.isNotDeepEmpty check would be better

- use commons bestof
- not sure what to do with unset maps, but try removing it and nothing breaks
- empty lines seems like typo from me
2
remove variables
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants