Cleaned up DamageWarhead

Reordered methods and fixed access modifiers. Also removed unused using statements from warheads.
This commit is contained in:
Pavel Penev
2020-05-23 23:20:42 +03:00
committed by abcdefg30
parent 7a0e55a02a
commit f0578a75f4
12 changed files with 23 additions and 34 deletions

View File

@@ -9,7 +9,6 @@
*/
#endregion
using System.Collections.Generic;
using System.Linq;
using OpenRA.GameRules;
using OpenRA.Mods.Common.Traits;
@@ -23,7 +22,7 @@ namespace OpenRA.Mods.Common.Warheads
[Desc("Damage will be applied to actors in this area. A value of zero means only targeted actor will be damaged.")]
public readonly WDist Spread = WDist.Zero;
public override void DoImpact(WPos pos, Actor firedBy, WarheadArgs args)
protected override void DoImpact(WPos pos, Actor firedBy, WarheadArgs args)
{
if (Spread == WDist.Zero)
return;