Fix CA1852

This commit is contained in:
RoosterDragon
2023-03-13 18:49:21 +00:00
committed by Pavel Penev
parent 277699cbd5
commit f4af5c1764
310 changed files with 510 additions and 507 deletions

View File

@@ -21,7 +21,7 @@ using OpenRA.Traits;
namespace OpenRA.Mods.D2k.Traits
{
[Desc("Sandworms use this attack model.")]
class AttackSwallowInfo : AttackFrontalInfo
sealed class AttackSwallowInfo : AttackFrontalInfo
{
[Desc("The number of ticks it takes to return underground.")]
public readonly int ReturnDelay = 60;
@@ -43,7 +43,7 @@ namespace OpenRA.Mods.D2k.Traits
public override object Create(ActorInitializer init) { return new AttackSwallow(init.Self, this); }
}
class AttackSwallow : AttackFrontal
sealed class AttackSwallow : AttackFrontal
{
public new readonly AttackSwallowInfo Info;
@@ -77,7 +77,7 @@ namespace OpenRA.Mods.D2k.Traits
return new SwallowTarget(self, newTarget, allowMove, forceAttack);
}
public class SwallowTarget : Attack
public sealed class SwallowTarget : Attack
{
public SwallowTarget(Actor self, in Target target, bool allowMovement, bool forceAttack)
: base(self, target, allowMovement, forceAttack) { }