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 map points input to Halo #4793

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

Conversation

mbergen
Copy link
Collaborator

@mbergen mbergen commented Sep 25, 2024

Summary

Allows input of {{Map| ... |points1=|points2=}} to be concatenated in output.
Requested on discord

How did you test this change?

dev

Comment on lines +147 to +148
local getScoreValue = function(opponentIndex)
local score = game.scores[opponentIndex]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
local getScoreValue = function(opponentIndex)
local score = game.scores[opponentIndex]
local displayScore = function(opponentIndex)
local score = DisplayHelper.MapScore(game.scores[opponentIndex], opponentIndex, game.resultType, game.walkover, game.winner)

Comment on lines +166 to +169
:node(DisplayHelper.MapScore(
getScoreValue(1),
1, game.resultType, game.walkover, game.winner
))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
:node(DisplayHelper.MapScore(
getScoreValue(1),
1, game.resultType, game.walkover, game.winner
))
:node(displayScore(1))

Comment on lines +173 to +176
:node(DisplayHelper.MapScore(
getScoreValue(2),
2, game.resultType, game.walkover, game.winner
))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
:node(DisplayHelper.MapScore(
getScoreValue(2),
2, game.resultType, game.walkover, game.winner
))
:node(displayScore(2))

Comment on lines +149 to +151
if not score then
return
end
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
if not score then
return
end

Not needed with the other changes

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.

4 participants