Made Effect, Resource and Smudge warheads return 0% effective against actors.
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -60,7 +60,5 @@ namespace OpenRA.Mods.RA
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public override float EffectivenessAgainst(ActorInfo ai) { return 1f; }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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; }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -52,7 +52,5 @@ namespace OpenRA.Mods.RA
|
|||||||
smudgeLayer.AddSmudge(sc);
|
smudgeLayer.AddSmudge(sc);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public override float EffectivenessAgainst(ActorInfo ai) { return 1f; }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user