equal
deleted
inserted
replaced
223 end |
223 end |
224 end |
224 end |
225 end |
225 end |
226 end |
226 end |
227 |
227 |
|
228 -- Update team labels |
|
229 for i = 0,(TeamsCount-1) do |
|
230 if teamNameArr[i] ~= " " then |
|
231 SetTeamLabel(teamNameArr[i], teamScore[teamClan[i]]) |
|
232 end |
|
233 end |
|
234 |
228 end |
235 end |
229 |
236 |
230 ----------------- |
237 ----------------- |
231 -- general methods |
238 -- general methods |
232 ------------------ |
239 ------------------ |
271 |
278 |
272 end |
279 end |
273 |
280 |
274 -- find out how many hogs per team, and the index of the first hog in hhs |
281 -- find out how many hogs per team, and the index of the first hog in hhs |
275 for i = 0, (numTeams-1) do |
282 for i = 0, (numTeams-1) do |
|
283 SetTeamLabel(GetTeamName(i), "0") |
276 for z = 0, (numhhs-1) do |
284 for z = 0, (numhhs-1) do |
277 if GetHogTeamName(hhs[z]) == teamNameArr[i] then |
285 if GetHogTeamName(hhs[z]) == teamNameArr[i] then |
278 teamClan[i] = GetHogClan(hhs[z]) |
286 teamClan[i] = GetHogClan(hhs[z]) |
279 if teamSize[i] == 0 then |
287 if teamSize[i] == 0 then |
280 teamIndex[i] = z -- should give starting index |
288 teamIndex[i] = z -- should give starting index |
410 end |
418 end |
411 end |
419 end |
412 TurnTimeLeft = 1 |
420 TurnTimeLeft = 1 |
413 end |
421 end |
414 |
422 |
415 totalComment = "" |
|
416 for i = 0,(TeamsCount-1) do |
|
417 if teamNameArr[i] ~= " " then |
|
418 -- Team scores (“<team name>: <score>”) |
|
419 teamComment[i] = string.format(loc("%s: %d"), teamNameArr[i], teamScore[teamClan[i]]) .. "|" |
|
420 totalComment = totalComment .. teamComment[i] |
|
421 elseif teamNameArr[i] == " " then |
|
422 teamComment[i] = "|" |
|
423 end |
|
424 end |
|
425 |
|
426 ShowMission(missionName, missionCaption, |
|
427 missionHelp .. "|" .. |
|
428 loc("Team Scores:") .. "|" .. |
|
429 totalComment, 0, 1600) |
|
430 |
|
431 end |
423 end |
432 |
424 |
433 end |
425 end |
434 |
426 |
435 function onGameTick() |
427 function onGameTick() |