hedgewars/uAmmos.pas
changeset 15698 f681c3f2eeba
parent 15442 6031c0cfec89
equal deleted inserted replaced
15697:25371cae9fd7 15698:f681c3f2eeba
   111             Ammoz[a].Probability:= 0;
   111             Ammoz[a].Probability:= 0;
   112 
   112 
   113         // avoid things we already have by scheme
   113         // avoid things we already have by scheme
   114         // merge this into DisableSomeWeapons ?
   114         // merge this into DisableSomeWeapons ?
   115         if ((a = amLowGravity) and ((GameFlags and gfLowGravity) <> 0))
   115         if ((a = amLowGravity) and ((GameFlags and gfLowGravity) <> 0))
   116         or ((a = amInvulnerable) and ((GameFlags and gfInvulnerable) <> 0))
   116         or ((a in [amInvulnerable, amResurrector, amVampiric]) and ((GameFlags and gfInvulnerable) <> 0))
   117         or ((a = amLaserSight) and ((GameFlags and gfLaserSight) <> 0))
   117         or ((a = amLaserSight) and ((GameFlags and gfLaserSight) <> 0))
   118         or ((a = amVampiric) and ((GameFlags and gfVampiric) <> 0))
   118         or ((a = amVampiric) and ((GameFlags and gfVampiric) <> 0))
   119         or ((a = amExtraTime) and (cHedgehogTurnTime >= 1000000))
   119         or ((a = amExtraTime) and (cHedgehogTurnTime >= 1000000))
   120         // Always remove creeper because it's unfinished.
   120         // Always remove creeper because it's unfinished.
   121         // TODO: Re-enable creeper when creeper is done
   121         // TODO: Re-enable creeper when creeper is done