Merge pull request #11422 from GraionDilach/expose-teslazap-duration

Expose TeslaZap duration to yaml.
This commit is contained in:
reaperrr
2016-06-11 13:10:12 +02:00
committed by GitHub

View File

@@ -30,6 +30,8 @@ namespace OpenRA.Mods.RA.Projectiles
public readonly int BrightZaps = 1;
public readonly int DimZaps = 2;
public readonly int Duration = 2;
public IEffect Create(ProjectileArgs args) { return new TeslaZap(this, args); }
}
@@ -38,7 +40,7 @@ namespace OpenRA.Mods.RA.Projectiles
readonly ProjectileArgs args;
readonly TeslaZapInfo info;
TeslaZapRenderable zap;
int timeUntilRemove = 2; // # of frames
int timeUntilRemove; // # of frames
bool doneDamage = false;
bool initialized = false;
@@ -46,6 +48,7 @@ namespace OpenRA.Mods.RA.Projectiles
{
this.args = args;
this.info = info;
this.timeUntilRemove = info.Duration;
}
public void Tick(World world)