hedgewars/uStats.pas
changeset 14023 bbecf663d599
parent 14020 bc61809bfb1e
child 14034 f9281c294a4c
equal deleted inserted replaced
14022:e155b300d49f 14023:bbecf663d599
   270                 AddVoice(sndGonnaGetYou, vpHurtEnemy)
   270                 AddVoice(sndGonnaGetYou, vpHurtEnemy)
   271 
   271 
   272     // Missed shot
   272     // Missed shot
   273     // A miss is defined as a shot with a damaging weapon with 0 kills, 0 damage, 0 hogs poisoned and 0 targets hit
   273     // A miss is defined as a shot with a damaging weapon with 0 kills, 0 damage, 0 hogs poisoned and 0 targets hit
   274     else if AmmoDamagingUsed and (Kills <= killsCheck) and (PoisonTurn = 0) and (PoisonClan = 0) and (DamageTurn = 0) and (HitTargets = 0) then
   274     else if AmmoDamagingUsed and (Kills <= killsCheck) and (PoisonTurn = 0) and (PoisonClan = 0) and (DamageTurn = 0) and (HitTargets = 0) then
   275         // Chance to call hedgehog stupid if sacrificed for nothing
   275         // Chance to call hedgehog stupid or nutter if sacrificed for nothing
   276         if CurrentHedgehog^.stats.Sacrificed then
   276         if CurrentHedgehog^.stats.Sacrificed then
   277             if random(2) = 0 then
   277             case random(3) of
   278                 AddVoice(sndMissed, PreviousTeam^.voicepack)
   278             0: AddVoice(sndMissed, PreviousTeam^.voicepack);
   279             else
   279             1: AddVoice(sndStupid, PreviousTeam^.voicepack);
   280                 AddVoice(sndStupid, PreviousTeam^.voicepack)
   280             2: AddVoice(sndNutter, PreviousTeam^.voicepack);
       
   281             end
   281         else
   282         else
   282             AddVoice(sndMissed, PreviousTeam^.voicepack)
   283             AddVoice(sndMissed, PreviousTeam^.voicepack)
   283 
   284 
   284     // Timeout
   285     // Timeout
   285     else if (AmmoUsedCount > 0) and (not isTurnSkipped) then
   286     else if (AmmoUsedCount > 0) and (not isTurnSkipped) then