Skip to content

Commit

Permalink
do cs, fifa and tft
Browse files Browse the repository at this point in the history
  • Loading branch information
Rathoz committed Oct 10, 2024
1 parent 900fa5e commit 6d591cb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ function CustomMatchGroupInput.processMatch(match, options)
match.resulttype = MatchGroupInputUtil.getResultType(winnerInput, finishedInput, opponents)
match.walkover = MatchGroupInputUtil.getWalkover(match.resulttype, opponents)
match.winner = MatchGroupInputUtil.getWinner(match.resulttype, winnerInput, opponents)
MatchGroupInputUtil.setPlacement(opponents, match.winner, 1, 2, match.resulttype)
Array.forEach(opponents, function(opponent, opponentIndex)
opponent.placement = MatchGroupInputUtil.placementFromWinner(match.resulttype, match.winner, opponentIndex)
end)
end

match.mode = Logic.emptyOr(match.mode, Variables.varDefault('tournament_mode', 'team'))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ function CustomMatchGroupInput.processMatch(match, options)
match.resulttype = MatchGroupInputUtil.getResultType(winnerInput, finishedInput, opponents)
match.walkover = MatchGroupInputUtil.getWalkover(match.resulttype, opponents)
match.winner = MatchGroupInputUtil.getWinner(match.resulttype, winnerInput, opponents)
MatchGroupInputUtil.setPlacement(opponents, match.winner, 1, 2, match.resulttype)
Array.forEach(opponents, function(opponent, opponentIndex)
opponent.placement = MatchGroupInputUtil.placementFromWinner(match.resulttype, match.winner, opponentIndex)
end)
end

match.mode = Logic.emptyOr(match.mode, Variables.varDefault('tournament_mode', 'solo'))
Expand Down
4 changes: 3 additions & 1 deletion components/match2/wikis/tft/match_group_input_custom.lua
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ function CustomMatchGroupInput.processMatch(match, options)
match.resulttype = MatchGroupInputUtil.getResultType(winnerInput, finishedInput, opponents)
match.walkover = MatchGroupInputUtil.getWalkover(match.resulttype, opponents)
match.winner = MatchGroupInputUtil.getWinner(match.resulttype, winnerInput, opponents)
MatchGroupInputUtil.setPlacement(opponents, match.winner, 1, 2, match.resulttype)
Array.forEach(opponents, function(opponent, opponentIndex)
opponent.placement = MatchGroupInputUtil.placementFromWinner(match.resulttype, match.winner, opponentIndex)
end)
end

Table.mergeInto(match, MatchGroupInputUtil.getTournamentContext(match))
Expand Down

0 comments on commit 6d591cb

Please sign in to comment.