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:
@@ -34,9 +34,9 @@ namespace OpenRA.Mods.Common.Projectiles
|
|||||||
|
|
||||||
[PaletteReference] public readonly string ShadowPalette = "shadow";
|
[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 readonly WDist Acceleration = new WDist(15);
|
||||||
|
|
||||||
public IEffect Create(ProjectileArgs args) { return new GravityBomb(this, args); }
|
public IEffect Create(ProjectileArgs args) { return new GravityBomb(this, args); }
|
||||||
@@ -56,7 +56,7 @@ namespace OpenRA.Mods.Common.Projectiles
|
|||||||
this.info = info;
|
this.info = info;
|
||||||
this.args = args;
|
this.args = args;
|
||||||
pos = args.Source;
|
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);
|
acceleration = new WVec(WDist.Zero, WDist.Zero, info.Acceleration);
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(info.Image))
|
if (!string.IsNullOrEmpty(info.Image))
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ ParaBomb:
|
|||||||
Projectile: GravityBomb
|
Projectile: GravityBomb
|
||||||
Image: PARABOMB
|
Image: PARABOMB
|
||||||
OpenSequence: open
|
OpenSequence: open
|
||||||
Velocity: 86
|
Speed: 86
|
||||||
Acceleration: 0
|
Acceleration: 0
|
||||||
Warhead@1Dam: SpreadDamage
|
Warhead@1Dam: SpreadDamage
|
||||||
Spread: 768
|
Spread: 768
|
||||||
|
|||||||
Reference in New Issue
Block a user