Adapt LaserZap Color description and Args structure
To match AreaBeam.
This commit is contained in:
@@ -57,7 +57,7 @@ namespace OpenRA.Mods.Common.Projectiles
|
||||
[Desc("Extra search radius beyond beam width. Required to ensure affecting actors with large health radius.")]
|
||||
public readonly WDist TargetExtraSearchRadius = new WDist(1536);
|
||||
|
||||
[Desc("Should the beam be visuall rendered? False = Beam is invisible.")]
|
||||
[Desc("Should the beam be visually rendered? False = Beam is invisible.")]
|
||||
public readonly bool RenderBeam = true;
|
||||
|
||||
[Desc("Equivalent to sequence ZOffset. Controls Z sorting.")]
|
||||
|
||||
@@ -36,7 +36,7 @@ namespace OpenRA.Mods.Common.Projectiles
|
||||
|
||||
public readonly bool UsePlayerColor = false;
|
||||
|
||||
[Desc("Laser color.")]
|
||||
[Desc("Color of the beam.")]
|
||||
public readonly Color Color = Color.Red;
|
||||
|
||||
[Desc("Impact animation.")]
|
||||
@@ -50,7 +50,7 @@ namespace OpenRA.Mods.Common.Projectiles
|
||||
public IProjectile Create(ProjectileArgs args)
|
||||
{
|
||||
var c = UsePlayerColor ? args.SourceActor.Owner.Color.RGB : Color;
|
||||
return new LaserZap(args, this, c);
|
||||
return new LaserZap(this, args, c);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ namespace OpenRA.Mods.Common.Projectiles
|
||||
bool animationComplete;
|
||||
WPos target;
|
||||
|
||||
public LaserZap(ProjectileArgs args, LaserZapInfo info, Color color)
|
||||
public LaserZap(LaserZapInfo info, ProjectileArgs args, Color color)
|
||||
{
|
||||
this.args = args;
|
||||
this.info = info;
|
||||
|
||||
Reference in New Issue
Block a user