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

@@ -29,14 +29,14 @@ namespace OpenRA.Mods.Common.Traits
[Desc("Every time another production building of the same queue is",
"constructed, the build times of all actors in the queue",
"decreased by a percentage of the original time.")]
public readonly int[] BuildTimeSpeedReduction = { 100, 86, 75, 67, 60, 55, 50 };
public readonly int[] BuildTimeSpeedReduction = [100, 86, 75, 67, 60, 55, 50];
public override object Create(ActorInitializer init) { return new ClassicProductionQueue(init, this); }
}
public class ClassicProductionQueue : ProductionQueue
{
static readonly ActorInfo[] NoItems = Array.Empty<ActorInfo>();
static readonly ActorInfo[] NoItems = [];
readonly Actor self;
readonly ClassicProductionQueueInfo info;