Skip to content

Commit

Permalink
cleanup tft a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
Rathoz committed Oct 10, 2024
1 parent 4d23f87 commit 2a110f1
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions components/match2/wikis/tft/match_group_input_custom.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ function CustomMatchGroupInput.processMatch(match, options)
match.mode = Variables.varDefault('tournament_mode', DEFAULT_MODE)

match.stream = Streams.processStreams(match)
match.links = MatchFunctions.getLinks(match)

match.games = games
match.opponents = opponents
Expand All @@ -76,12 +75,6 @@ function CustomMatchGroupInput.processMatch(match, options)
return match
end

---@param match table
---@return table
function MatchFunctions.getLinks(match)
return {}
end

---@param match table
---@return table
function MatchFunctions.getExtraData(match)
Expand All @@ -100,14 +93,10 @@ function MatchFunctions.calculateMatchScore(maps)
end

---@param bestofInput string|integer?
---@return integer?
---@return integer
function MatchFunctions.getBestOf(bestofInput)
local bestof = tonumber(bestofInput) or tonumber(Variables.varDefault('match_bestof', DEFAULT_BESTOF))

if bestof then
Variables.varDefine('match_bestof', bestof)
end

local bestof = tonumber(bestofInput) or tonumber(Variables.varDefault('match_bestof')) or DEFAULT_BESTOF
Variables.varDefine('match_bestof', bestof)
return bestof
end

Expand Down

0 comments on commit 2a110f1

Please sign in to comment.