Made Effect, Resource and Smudge warheads return 0% effective against actors.

This commit is contained in:
UberWaffe
2014-08-11 22:04:56 +02:00
parent fb2b63c7f8
commit 0ebe1c2c6a
5 changed files with 1 additions and 9 deletions

View File

@@ -29,7 +29,7 @@ namespace OpenRA.GameRules
public abstract void DoImpact(Target target, Actor firedBy, float firepowerModifier); public abstract void DoImpact(Target target, Actor firedBy, float firepowerModifier);
public abstract float EffectivenessAgainst(ActorInfo ai); public virtual float EffectivenessAgainst(ActorInfo ai) { return 0f; }
public bool IsValidAgainst(Target target, World world, Actor firedBy) public bool IsValidAgainst(Target target, World world, Actor firedBy)
{ {

View File

@@ -95,8 +95,6 @@ namespace OpenRA.Mods.RA
Sound.Play(ImpactSound, pos); Sound.Play(ImpactSound, pos);
} }
public override float EffectivenessAgainst(ActorInfo ai) { return 1f; }
public bool IsValidImpact(WPos pos, Actor firedBy) public bool IsValidImpact(WPos pos, Actor firedBy)
{ {
var world = firedBy.World; var world = firedBy.World;

View File

@@ -60,7 +60,5 @@ namespace OpenRA.Mods.RA
} }
} }
} }
public override float EffectivenessAgainst(ActorInfo ai) { return 1f; }
} }
} }

View File

@@ -41,7 +41,5 @@ namespace OpenRA.Mods.RA
foreach (var cell in allCells) foreach (var cell in allCells)
resLayer.Destroy(cell); resLayer.Destroy(cell);
} }
public override float EffectivenessAgainst(ActorInfo ai) { return 1f; }
} }
} }

View File

@@ -52,7 +52,5 @@ namespace OpenRA.Mods.RA
smudgeLayer.AddSmudge(sc); smudgeLayer.AddSmudge(sc);
} }
} }
public override float EffectivenessAgainst(ActorInfo ai) { return 1f; }
} }
} }