add IonCannon power
This commit is contained in:
@@ -29,13 +29,13 @@ namespace OpenRA.Effects
|
||||
Animation anim;
|
||||
int2 pos;
|
||||
|
||||
public Explosion( World world, int2 pixelPos, int style, bool isWater)
|
||||
public Explosion(World world, int2 pixelPos, int style, bool isWater)
|
||||
{
|
||||
this.pos = pixelPos;
|
||||
var variantSuffix = isWater ? "w" : "";
|
||||
anim = new Animation("explosion");
|
||||
anim.PlayThen(style.ToString() + variantSuffix,
|
||||
() => world.AddFrameEndTask(w => w.Remove(this)));
|
||||
anim.PlayThen(style.ToString() + variantSuffix,
|
||||
() => world.AddFrameEndTask(w => w.Remove(this)));
|
||||
}
|
||||
|
||||
public void Tick( World world ) { anim.Tick(); }
|
||||
|
||||
@@ -38,7 +38,7 @@ namespace OpenRA.Traits
|
||||
protected override void OnActivate()
|
||||
{
|
||||
Game.controller.orderGenerator = new SelectTarget();
|
||||
Sound.Play(Info.SelectTargetSound);
|
||||
Sound.PlayToPlayer(Owner, Info.SelectTargetSound);
|
||||
}
|
||||
|
||||
public void ResolveOrder(Actor self, Order order)
|
||||
@@ -82,8 +82,6 @@ namespace OpenRA.Traits
|
||||
{
|
||||
if (mi.Button == MouseButton.Left)
|
||||
yield return new Order("NuclearMissile", world.LocalPlayer.PlayerActor, xy);
|
||||
|
||||
yield break;
|
||||
}
|
||||
|
||||
public void Tick(World world)
|
||||
|
||||
Reference in New Issue
Block a user