hedgewars/uStats.pas
changeset 12359 81ab841a0da5
parent 12343 6ff01dc1ffe2
child 12568 494d3e1c4810
equal deleted inserted replaced
12358:b9582e2ebb56 12359:81ab841a0da5
   143     if (CurrentHedgehog^.stats.Sacrificed) then
   143     if (CurrentHedgehog^.stats.Sacrificed) then
   144         killsCheck:= 1
   144         killsCheck:= 1
   145     else
   145     else
   146         killsCheck:= 0;
   146         killsCheck:= 0;
   147 
   147 
   148     system.writeln(inttostr(CurrentHedgehog^.stats.StepDamageRecv));
       
   149     // First blood (first damage, poison or kill)
   148     // First blood (first damage, poison or kill)
   150     if ((DamageTotal > 0) or (KillsTotal > 0) or (PoisonTotal > 0)) and ((CurrentHedgehog^.stats.DamageGiven = DamageTotal) and (CurrentHedgehog^.stats.StepKills = KillsTotal) and (PoisonTotal = PoisonTurn + PoisonClan)) then
   149     if ((DamageTotal > 0) or (KillsTotal > 0) or (PoisonTotal > 0)) and ((CurrentHedgehog^.stats.DamageGiven = DamageTotal) and (CurrentHedgehog^.stats.StepKills = KillsTotal) and (PoisonTotal = PoisonTurn + PoisonClan)) then
   151         AddVoice(sndFirstBlood, CurrentTeam^.voicepack)
   150         AddVoice(sndFirstBlood, CurrentTeam^.voicepack)
   152 
   151 
   153     // Hog hurts, poisons or kills itself (except sacrifice)
   152     // Hog hurts, poisons or kills itself (except sacrifice)