Refactor BurstDelay to BurstDelays

Allowing to set custom per-burst delays.
This commit is contained in:
reaperrr
2017-07-16 15:03:40 +02:00
parent 4ce2e82ff0
commit 834a40b18d
3 changed files with 17 additions and 3 deletions

View File

@@ -69,8 +69,9 @@ namespace OpenRA.GameRules
[Desc("What types of targets are unaffected.", "Overrules ValidTargets.")]
public readonly HashSet<string> InvalidTargets = new HashSet<string>();
[Desc("Delay in ticks between firing shots from the same ammo magazine.")]
public readonly int BurstDelay = 5;
[Desc("Delay in ticks between firing shots from the same ammo magazine. If one entry, it will be used for all bursts.",
"If multiple entries, their number needs to match Burst - 1.")]
public readonly int[] BurstDelays = { 5 };
[Desc("The minimum range the weapon can fire.")]
public readonly WDist MinRange = WDist.Zero;