share/hedgewars/Data/Scripts/Multiplayer/Space_Invasion.lua
changeset 15069 e16f906224fd
parent 14953 6c17ef373079
child 15788 acf70c44065b
equal deleted inserted replaced
15068:6f51c75994a4 15069:e16f906224fd
   569 	if lGameOver then
   569 	if lGameOver then
   570 		displayTime = 20000
   570 		displayTime = 20000
   571 	else
   571 	else
   572 		displayTime = 1
   572 		displayTime = 1
   573 	end
   573 	end
       
   574 	local icon
       
   575 	if lGameOver then
       
   576 		icon = 4
       
   577 	else
       
   578 		icon = 2
       
   579 	end
   574 	ShowMission(	loc("Space Invasion"),
   580 	ShowMission(	loc("Space Invasion"),
   575 			statusText,
   581 			statusText,
   576 			string.format(loc("Rounds complete: %d/%d"), SI.roundNumber, SI.roundLimit) .. "| " .. "|" ..
   582 			string.format(loc("Rounds complete: %d/%d"), SI.roundNumber, SI.roundLimit) .. "| " .. "|" ..
   577 			scoreText .. " |" ..entireC, 4, displayTime)
   583 			scoreText .. " |" ..entireC, icon, displayTime)
   578 
   584 
   579 	if lGameOver then
   585 	if lGameOver then
   580 		local winnerTeam = teamStats[1].name
   586 		local winnerTeam = teamStats[1].name
   581 		AddCaption(string.format(loc("%s wins!"), winnerTeam), capcolDefault, capgrpGameState)
   587 		AddCaption(string.format(loc("%s wins!"), winnerTeam), capcolDefault, capgrpGameState)
   582 		SendStat(siGameResult, string.format(loc("%s wins!"), winnerTeam))
   588 		SendStat(siGameResult, string.format(loc("%s wins!"), winnerTeam))
  1134 				loc("Movement: [Up], [Down], [Left], [Right]") .. "|" ..
  1140 				loc("Movement: [Up], [Down], [Left], [Right]") .. "|" ..
  1135 				loc("Fire: [Precise]") .. "|" ..
  1141 				loc("Fire: [Precise]") .. "|" ..
  1136 				loc("Toggle Shield: [Long jump]") .. "|" ..
  1142 				loc("Toggle Shield: [Long jump]") .. "|" ..
  1137 				loc("Radar Ping: [High jump]") .. "|" ..
  1143 				loc("Radar Ping: [High jump]") .. "|" ..
  1138 
  1144 
  1139 				"", 4, 5000
  1145 				"", 8, 5000
  1140 				)
  1146 				)
  1141 
  1147 
  1142 	CreateMeSomeCircles()
  1148 	CreateMeSomeCircles()
  1143 	RebuildTeamInfo() -- control
  1149 	RebuildTeamInfo() -- control
  1144 
  1150