share/hedgewars/Data/Scripts/Multiplayer/Mutant.lua
changeset 12288 a5a7d0c6d3f3
parent 11909 1d2e89be3eb6
child 12335 8f693d25be2f
equal deleted inserted replaced
12287:faf1b93422ba 12288:a5a7d0c6d3f3
   631                         end
   631                         end
   632                 else
   632                 else
   633                     if curr_team ~=GetHogTeamName(gear) then
   633                     if curr_team ~=GetHogTeamName(gear) then
   634                         if CurrentHedgehog==mutant and getGearValue(mutant,"SelfDestruct")==false then
   634                         if CurrentHedgehog==mutant and getGearValue(mutant,"SelfDestruct")==false then
   635                             SetHealth(CurrentHedgehog, GetHealth(CurrentHedgehog)+kill_reward)
   635                             SetHealth(CurrentHedgehog, GetHealth(CurrentHedgehog)+kill_reward)
   636                             AddCaption(loc("+1 point"), GetClanColor(GetHogClan(gear)), capgrpMessage)
   636                             AddCaption(loc("+1 point"), GetClanColor(GetHogClan(CurrentHedgehog)), capgrpMessage)
   637                             AddCaption(string.format(loc("+%d health"), kill_reward), GetClanColor(GetHogClan(gear)), capgrpMessage2)
   637                             AddCaption(string.format(loc("+%d health"), kill_reward), GetClanColor(GetHogClan(CurrentHedgehog)), capgrpMessage2)
   638                             increaseTeamValue(curr_team,"Score")
   638                             increaseTeamValue(curr_team,"Score")
   639                         end
   639                         end
   640                         if getGearValue(CurrentHedgehog,"Feeder") then
   640                         if getGearValue(CurrentHedgehog,"Feeder") then
   641                             increaseTeamValue(curr_team,"Score")
   641                             increaseTeamValue(curr_team,"Score")
   642                             AddCaption(loc("+1 point"), GetClanColor(GetHogClan(CurrentHedgehog)), capgrpMessage)
   642                             AddCaption(loc("+1 point"), GetClanColor(GetHogClan(CurrentHedgehog)), capgrpMessage)