share/hedgewars/Data/Scripts/Multiplayer/Mutant.lua
changeset 7996 66e8ac9c2274
parent 7938 80e2e50471d9
child 8043 da083f8d95e6
child 8045 ef403e6bddae
equal deleted inserted replaced
7994:706218709157 7996:66e8ac9c2274
   207     end
   207     end
   208 
   208 
   209     checkScore()
   209     checkScore()
   210     giveWeapons(CurrentHedgehog)
   210     giveWeapons(CurrentHedgehog)
   211     drawCircles()
   211     drawCircles()
       
   212     setAIHints()
   212     kill_reward= numhhs*10
   213     kill_reward= numhhs*10
   213 
   214 
   214     if CurrentHedgehog == mutant then
   215     if CurrentHedgehog == mutant then
   215         mt_hurt=true
   216         mt_hurt=true
   216         disease= mutant_base_disease - numhhs
   217         disease= mutant_base_disease - numhhs
   395     SetHogHat(gear, 'NoHat')
   396     SetHogHat(gear, 'NoHat')
   396     SetHogHat(gear, getGearValue(gear,"Hat"))
   397     SetHogHat(gear, getGearValue(gear,"Hat"))
   397     setGearValue(mutant,"SelfDestruct",false)
   398     setGearValue(mutant,"SelfDestruct",false)
   398     mt_hurt=false
   399     mt_hurt=false
   399     mutant=nil
   400     mutant=nil
       
   401 end
       
   402 
       
   403 function setAIHints()
       
   404     for i = 0, #hhs do
       
   405         if mutant == nil or hhs[i] == mutant or CurrentHedgehog == mutant then
       
   406             SetGearAIHints(hhs[i], aihUsual)
       
   407         else
       
   408             SetGearAIHints(hhs[i], aihDoesntMatter)
       
   409         end
       
   410     end
   400 end
   411 end
   401 
   412 
   402 function removeFeeder(gear)
   413 function removeFeeder(gear)
   403 
   414 
   404     if gear~=nil then
   415     if gear~=nil then