Fix IDE0028, IDE0300, IDE0301, IDE0302, IDE0303, IDE0304.

Silence IDE0305.
This commit is contained in:
RoosterDragon
2025-03-03 17:29:45 +00:00
committed by Pavel Penev
parent 0740991c12
commit 79454d8fd2
559 changed files with 1661 additions and 1751 deletions

View File

@@ -31,7 +31,7 @@ namespace OpenRA.Mods.D2k.Traits.Buildings
public readonly BitSet<DamageType> DamageTypes = default;
[Desc("Terrain types where the actor will take damage.")]
public readonly string[] DamageTerrainTypes = { "Rock" };
public readonly string[] DamageTerrainTypes = ["Rock"];
[Desc("Percentage health below which the actor will not receive further damage.")]
public readonly int DamageThreshold = 50;
@@ -44,7 +44,7 @@ namespace OpenRA.Mods.D2k.Traits.Buildings
public readonly ushort ConcreteTemplate = 88;
[Desc("List of required prerequisites to place a terrain template.")]
public readonly string[] ConcretePrerequisites = Array.Empty<string>();
public readonly string[] ConcretePrerequisites = [];
public override object Create(ActorInitializer init) { return new D2kBuilding(init, this); }
}