Add documentation to TeslaZap.
This commit is contained in:
committed by
Smittytron
parent
3513d37702
commit
e2284f660c
@@ -23,21 +23,30 @@ namespace OpenRA.Mods.Cnc.Projectiles
|
||||
public readonly string Image = "litning";
|
||||
|
||||
[SequenceReference(nameof(Image))]
|
||||
[Desc("Sprite sequence to play at the center.")]
|
||||
public readonly string BrightSequence = "bright";
|
||||
|
||||
[SequenceReference(nameof(Image))]
|
||||
[Desc("Sprite sequence to play at the borders.")]
|
||||
public readonly string DimSequence = "dim";
|
||||
|
||||
[PaletteReference]
|
||||
[Desc("The palette used to draw this electric zap.")]
|
||||
public readonly string Palette = "effect";
|
||||
|
||||
[Desc("How many sprite sequences to play at the center.")]
|
||||
public readonly int BrightZaps = 1;
|
||||
|
||||
[Desc("How many sprite sequences to play at the borders.")]
|
||||
public readonly int DimZaps = 2;
|
||||
|
||||
[Desc("How long (in ticks) to play the sprite sequences.")]
|
||||
public readonly int Duration = 2;
|
||||
|
||||
[Desc("How long (in ticks) until applying damage. Can't be longer than `" + nameof(Duration) + "`")]
|
||||
public readonly int DamageDuration = 1;
|
||||
|
||||
[Desc("Follow the targeted actor when it moves.")]
|
||||
public readonly bool TrackTarget = true;
|
||||
|
||||
public IProjectile Create(ProjectileArgs args) { return new TeslaZap(this, args); }
|
||||
|
||||
Reference in New Issue
Block a user