Rename GravityBomb Velocity to Speed

Mostly to make switching between projectiles a little easier for modders, and to potentially save some upgrade rule overhead if sprite projectiles are refactored to share a common code base.
This commit is contained in:
reaperrr
2016-05-28 15:18:07 +02:00
parent 386b142913
commit a320ca89a6
2 changed files with 4 additions and 4 deletions

View File

@@ -34,9 +34,9 @@ namespace OpenRA.Mods.Common.Projectiles
[PaletteReference] public readonly string ShadowPalette = "shadow";
public readonly WDist Velocity = WDist.Zero;
public readonly WDist Speed = WDist.Zero;
[Desc("Value added to velocity every tick.")]
[Desc("Value added to speed every tick.")]
public readonly WDist Acceleration = new WDist(15);
public IEffect Create(ProjectileArgs args) { return new GravityBomb(this, args); }
@@ -56,7 +56,7 @@ namespace OpenRA.Mods.Common.Projectiles
this.info = info;
this.args = args;
pos = args.Source;
velocity = new WVec(WDist.Zero, WDist.Zero, -info.Velocity);
velocity = new WVec(WDist.Zero, WDist.Zero, -info.Speed);
acceleration = new WVec(WDist.Zero, WDist.Zero, info.Acceleration);
if (!string.IsNullOrEmpty(info.Image))