hedgewars/uStats.pas
changeset 2712 8f4527c9137c
parent 2630 079ef82eac75
child 2716 b9ca1bfca24f
equal deleted inserted replaced
2711:e90b4e189be9 2712:8f4527c9137c
   108 		PlaySound(sndFirstBlood, false, CurrentTeam^.voicepack)
   108 		PlaySound(sndFirstBlood, false, CurrentTeam^.voicepack)
   109 
   109 
   110 	else if CurrentHedgehog^.stats.StepDamageRecv > 0 then
   110 	else if CurrentHedgehog^.stats.StepDamageRecv > 0 then
   111 		begin
   111 		begin
   112 		PlaySound(sndStupid, false, PreviousTeam^.voicepack);
   112 		PlaySound(sndStupid, false, PreviousTeam^.voicepack);
   113 		if DamageGiven = CurrentHedgehog^.stats.StepDamageRecv then AddCaption(Format(GetEventString(eidHurtSelf), CurrentHedgehog^.Name), cWhiteColor, capgrpGameState);
   113 		if DamageGiven = CurrentHedgehog^.stats.StepDamageRecv then AddCaption(Format(GetEventString(eidHurtSelf), CurrentHedgehog^.Name), cWhiteColor, capgrpMessage);
   114 		end
   114 		end
   115 	else if DamageClan <> 0 then
   115 	else if DamageClan <> 0 then
   116 		if DamageTotal > DamageClan then
   116 		if DamageTotal > DamageClan then
   117 			if random(2) = 0 then
   117 			if random(2) = 0 then
   118 				PlaySound(sndNutter, false, CurrentTeam^.voicepack)
   118 				PlaySound(sndNutter, false, CurrentTeam^.voicepack)
   134 	else if (AmmoUsedCount > 0) and not isTurnSkipped then
   134 	else if (AmmoUsedCount > 0) and not isTurnSkipped then
   135 		// nothing ?
   135 		// nothing ?
   136 	else if isTurnSkipped then
   136 	else if isTurnSkipped then
   137 		begin
   137 		begin
   138 		PlaySound(sndBoring, false, PreviousTeam^.voicepack);
   138 		PlaySound(sndBoring, false, PreviousTeam^.voicepack);
   139 		AddCaption(Format(GetEventString(eidTurnSkipped), CurrentHedgehog^.Name), cWhiteColor, capgrpGameState);
   139 		AddCaption(Format(GetEventString(eidTurnSkipped), CurrentHedgehog^.Name), cWhiteColor, capgrpMessage);
   140 		end
   140 		end
   141 	else
   141 	else
   142 		PlaySound(sndCoward, false, PreviousTeam^.voicepack);
   142 		PlaySound(sndCoward, false, PreviousTeam^.voicepack);
   143 	end;
   143 	end;
   144 
   144