hedgewars/uGearsUtils.pas
branchicegun
changeset 8560 134a098235fa
parent 8199 886ed135665b
child 8632 b5ed76d2a1f9
equal deleted inserted replaced
8557:18330b24b92c 8560:134a098235fa
   180    King check should be in here instead of ApplyDamage since Tiy wants them kicked less
   180    King check should be in here instead of ApplyDamage since Tiy wants them kicked less
   181 *)
   181 *)
   182 i:= _1;
   182 i:= _1;
   183 if (CurrentHedgehog <> nil) and CurrentHedgehog^.King then
   183 if (CurrentHedgehog <> nil) and CurrentHedgehog^.King then
   184     i:= _1_5;
   184     i:= _1_5;
       
   185 if (Gear^.Hedgehog <> nil) and (Gear^.Hedgehog^.Effects[heFrozen] > 0) then i:=i*_0_2;
   185 if (Gear^.Hedgehog <> nil) and (Gear^.Hedgehog^.King) then
   186 if (Gear^.Hedgehog <> nil) and (Gear^.Hedgehog^.King) then
   186     ModifyDamage:= hwRound(_0_01 * cDamageModifier * dmg * i * cDamagePercent * _0_5)
   187     ModifyDamage:= hwRound(_0_01 * cDamageModifier * dmg * i * cDamagePercent * _0_5)
   187 else
   188 else
   188     ModifyDamage:= hwRound(_0_01 * cDamageModifier * dmg * i * cDamagePercent)
   189     ModifyDamage:= hwRound(_0_01 * cDamageModifier * dmg * i * cDamagePercent)
   189 end;
   190 end;