Can't use cHealthDecrease here for these two 'cause it isn't a generic "do some damage to hog" flag, but is rather set when SD starts
authornemo
Sun, 26 Sep 2010 16:28:04 -0400
changeset 3908 1429c303858d
parent 3907 5b516f0d9957
child 3909 4ba25a3d15af
child 3910 dd47efbdec46
Can't use cHealthDecrease here for these two 'cause it isn't a generic "do some damage to hog" flag, but is rather set when SD starts
hedgewars/uGears.pas
--- a/hedgewars/uGears.pas	Sun Sep 26 15:40:59 2010 -0400
+++ b/hedgewars/uGears.pas	Sun Sep 26 16:28:04 2010 -0400
@@ -670,7 +670,7 @@
             begin
             tmp:= 0;
             if PHedgehog(Gear^.Hedgehog)^.Effects[hePoisoned] then
-                inc(tmp, ModifyDamage(cHealthDecrease, Gear));
+                inc(tmp, ModifyDamage(5, Gear));
             inc(tmp, cHealthDecrease);
             if PHedgehog(Gear^.Hedgehog)^.King then
                 begin
@@ -681,7 +681,7 @@
                         (not team^.Hedgehogs[i].King) and
                         (team^.Hedgehogs[i].Gear^.Health > team^.Hedgehogs[i].Gear^.Damage)
                     then flag:= true;
-                if not flag then inc(tmp, cHealthDecrease)
+                if not flag then inc(tmp, 5)
                 end;
             if tmp > 0 then 
                 begin