hedgewars/uStats.pas
changeset 14058 bf8b7c166b3c
parent 14056 ecfd13128100
child 14059 1ac129df8e5b
equal deleted inserted replaced
14057:bf14c7c1be02 14058:bf8b7c166b3c
   297             // possible reactions of victim, in the order of preference:
   297             // possible reactions of victim, in the order of preference:
   298             // 1. claiming revenge
   298             // 1. claiming revenge
   299             // 2. complaining about getting attacked too often
   299             // 2. complaining about getting attacked too often
   300             // 3. threatening enemy with retaliation
   300             // 3. threatening enemy with retaliation
   301             if CurrentHedgehog^.stats.GotRevenge then
   301             if CurrentHedgehog^.stats.GotRevenge then
   302                 AddVoice(sndRevenge, CurrentHedgehog^.Team^.voicepack)
   302                 begin
       
   303                 AddVoice(sndRevenge, CurrentHedgehog^.Team^.voicepack);
       
   304                 // If revenge taunt was added, one of the following voices is
       
   305                 // added as fallback (4th param), in case of a missing Revenge sound file.
       
   306                 if random(2) = 0 then
       
   307                     AddVoice(sndRegret, vpHurtEnemy, false, true)
       
   308                 else
       
   309                     AddVoice(sndGonnaGetYou, vpHurtEnemy, false, true);
       
   310                 end
   303             else
   311             else
   304                 if LeaveMeAlone then
   312                 if LeaveMeAlone then
   305                     if random(2) = 0 then
   313                     if random(2) = 0 then
   306                         AddVoice(sndCutItOut, vpHurtEnemy)
   314                         AddVoice(sndCutItOut, vpHurtEnemy)
   307                     else
   315                     else