Minelayer: supports specifying both mine laying and post laying delays

This commit is contained in:
michaeldgg2
2023-07-08 20:10:12 +02:00
committed by Matthias Mailänder
parent 4a02e6c6cc
commit ce6e73dc92
3 changed files with 69 additions and 7 deletions

View File

@@ -63,6 +63,12 @@ namespace OpenRA.Mods.Common.Traits
[Desc("Ammo the minelayer consumes per mine.")]
public readonly int AmmoUsage = 1;
[Desc("Number of ticks it takes to lay a mine.")]
public readonly int PreLayDelay = 0;
[Desc("Number of ticks for the minelayer to wait after laying a mine. The wait can be interrupted by a player order.")]
public readonly int AfterLayingDelay = 20;
public override object Create(ActorInitializer init) { return new Minelayer(init.Self, this); }
}