576 string.format(loc("Rounds complete: %d/%d"), SI.roundNumber, SI.roundLimit) .. "| " .. "|" .. |
576 string.format(loc("Rounds complete: %d/%d"), SI.roundNumber, SI.roundLimit) .. "| " .. "|" .. |
577 scoreText .. " |" ..entireC, 4, displayTime) |
577 scoreText .. " |" ..entireC, 4, displayTime) |
578 |
578 |
579 if lGameOver then |
579 if lGameOver then |
580 local winnerTeam = teamStats[1].name |
580 local winnerTeam = teamStats[1].name |
581 for i = 0, (SI.numhhs-1) do |
|
582 if GetHogTeamName(SI.hhs[i]) == winnerTeam then |
|
583 SetState(SI.hhs[i], bor(GetState(SI.hhs[i]), gstWinner)) |
|
584 end |
|
585 end |
|
586 AddCaption(string.format(loc("%s wins!"), winnerTeam), capcolDefault, capgrpGameState) |
581 AddCaption(string.format(loc("%s wins!"), winnerTeam), capcolDefault, capgrpGameState) |
587 SendStat(siGameResult, string.format(loc("%s wins!"), winnerTeam)) |
582 SendStat(siGameResult, string.format(loc("%s wins!"), winnerTeam)) |
588 |
583 |
589 for i = 1, TeamsCount do |
584 for i = 1, TeamsCount do |
590 SendStat(siPointType, "!POINTS") |
585 SendStat(siPointType, "!POINTS") |