share/hedgewars/Data/Scripts/Multiplayer/Mutant.lua
changeset 13105 b14cac8ac56c
parent 13036 434bcdd9562c
child 13108 f3f8d017f994
equal deleted inserted replaced
13104:e0ec37c8104d 13105:b14cac8ac56c
   101 local mutantHat = "WhySoSerious"
   101 local mutantHat = "WhySoSerious"
   102 local feederHat = "poke_slowpoke"
   102 local feederHat = "poke_slowpoke"
   103 
   103 
   104 function rules()
   104 function rules()
   105 
   105 
   106 	local ruleSet = loc("Rules: ") .. "|" ..
   106 	local ruleSet = loc("Hedgehogs will be revived after their death.") .. "|" ..
   107 	loc("Hedgehogs will be revived after their death.") .. "|" ..
       
   108 	string.format(loc("Mines explode after %d s."), div(MinesTime, 1000)) .. "|" ..
   107 	string.format(loc("Mines explode after %d s."), div(MinesTime, 1000)) .. "|" ..
   109 	" |"..
       
   110 	loc("The first hedgehog to kill someone becomes the Mutant.") .. "|" ..
   108 	loc("The first hedgehog to kill someone becomes the Mutant.") .. "|" ..
   111 	loc("The Mutant has super-weapons and a lot of health.") .. "|" ..
   109 	loc("The Mutant has super weapons and a lot of health.") .. "|" ..
   112 	loc("The Mutant loses health quickly if he doesn't keep scoring kills.") .. "|" ..
   110 	loc("The Mutant loses health quickly, but gains health by killing.") .. "|" ..
   113 	" |" ..
   111 	" |" ..
   114 	loc("Score points by killing other hedgehogs (see below).") .. "|" ..
   112 	loc("Score points by killing other hedgehogs.") .. "|" ..
   115 	loc("The hedgehog with least points (or most deaths) becomes the Bottom Feeder.") .. "|" ..
   113 	loc("The hedgehog with least points (or most deaths) becomes the Bottom Feeder.") .. "|" ..
   116 	string.format(loc("The first hedgehog which scores %d or more wins the game."), winScore) .. "|" ..
   114 	loc("The score and deaths are shown next to the team bar.") .. "|" ..
       
   115 	string.format(loc("Goal: Score %d points or more to win!"), winScore) .. "|" ..
   117         " |" ..
   116         " |" ..
   118 	loc("Scoring: ") .. "|" ..
   117 	loc("Scoring: ") .. "|" ..
   119 	loc("+2 for becoming the Mutant") .. "|" ..
   118 	loc("+2 for becoming the Mutant") .. "|" ..
   120 	loc("+1 to the Mutant for killing anyone") .. "|" ..
   119 	loc("+1 to the Mutant for killing anyone") .. "|" ..
   121 	loc("+1 to the Bottom Feeder for killing anyone") .. "|" ..
   120 	loc("+1 to the Bottom Feeder for killing anyone") .. "|" ..
   369 end
   368 end
   370 
   369 
   371 function renderScores()
   370 function renderScores()
   372     for i=0, TeamsCount-1 do
   371     for i=0, TeamsCount-1 do
   373         if teams[i]~= nil then
   372         if teams[i]~= nil then
   374             SetTeamLabel(teams[i], string.format(loc("Score: %d | Deaths: %d"), getTeamValue(teams[i], "Score"), getTeamValue(teams[i], "DeadHogs")))
   373             SetTeamLabel(teams[i], string.format(loc("%d | %d"), getTeamValue(teams[i], "Score"), getTeamValue(teams[i], "DeadHogs")))
   375         end
   374         end
   376     end
   375     end
   377 end
   376 end
   378 
   377 
   379 function checkScore()
   378 function checkScore()