share/hedgewars/Data/Scripts/Multiplayer/Space_Invasion.lua
changeset 12426 9f3387907e06
parent 12424 b9cc405541c1
child 13019 880662cf41ee
equal deleted inserted replaced
12425:f9cbb896967b 12426:9f3387907e06
   909 
   909 
   910 		-- Game over
   910 		-- Game over
   911 		gameOver = true
   911 		gameOver = true
   912 		EndTurn(true)
   912 		EndTurn(true)
   913 		TimeLeft = 0
   913 		TimeLeft = 0
   914 		SendStat(siGraphTitle, "Score graph")
   914 		SendStat(siGraphTitle, loc("Score graph"))
   915 	end
   915 	end
   916 end
   916 end
   917 
   917 
   918 -- gaudy racer
   918 -- gaudy racer
   919 function CheckForNewRound()
   919 function CheckForNewRound()
  1091 			AddCaption( string.format(loc("Shield ON: %d power remaining"), shieldHealth - 80))
  1091 			AddCaption( string.format(loc("Shield ON: %d power remaining"), shieldHealth - 80))
  1092 			PlaySound(sndWarp)
  1092 			PlaySound(sndWarp)
  1093 		else
  1093 		else
  1094 			beam = false
  1094 			beam = false
  1095 			SetVisualGearValues(pShield, GetX(CurrentHedgehog), GetY(CurrentHedgehog), 0, 0, 1, 10, 0, 0, 0, 0xa800ffff)
  1095 			SetVisualGearValues(pShield, GetX(CurrentHedgehog), GetY(CurrentHedgehog), 0, 0, 1, 10, 0, 0, 0, 0xa800ffff)
  1096 			AddCaption( string.format(loc("Shield ON: %d power remaining"), shieldHealth - 80))
  1096 			AddCaption( string.format(loc("Shield OFF: %d power remaining"), shieldHealth - 80))
  1097 		end
  1097 		end
  1098 	end
  1098 	end
  1099 end
  1099 end
  1100 
  1100 
  1101 function onHJump()
  1101 function onHJump()