more pedantry
This commit is contained in:
@@ -1,14 +1,9 @@
|
||||
using OpenRa.Game.Traits;
|
||||
using OpenRa.Game.Orders;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using OpenRa.Game.Effects;
|
||||
using OpenRa.Game.Graphics;
|
||||
|
||||
namespace OpenRa.Game.Traits
|
||||
{
|
||||
class IronCurtainable: IOrder, IDamageModifier, ITick
|
||||
class IronCurtainable : IOrder, IDamageModifier, ITick
|
||||
{
|
||||
int RemainingTicks = 0;
|
||||
|
||||
@@ -23,10 +18,10 @@ namespace OpenRa.Game.Traits
|
||||
{
|
||||
return (RemainingTicks > 0) ? 0.0f : 1.0f;
|
||||
}
|
||||
|
||||
|
||||
public Order IssueOrder(Actor self, int2 xy, MouseInput mi, Actor underCursor)
|
||||
{
|
||||
return null; // Chronoshift order is issued through Chrome.
|
||||
return null; // IronCurtain order is issued through Chrome.
|
||||
}
|
||||
|
||||
public void ResolveOrder(Actor self, Order order)
|
||||
@@ -38,7 +33,9 @@ namespace OpenRa.Game.Traits
|
||||
RemainingTicks = (int)(Rules.General.IronCurtain * 60 * 25);
|
||||
Sound.Play("ironcur9.aud");
|
||||
// Play active anim
|
||||
var ironCurtain = Game.world.Actors.Where(a => a.Owner == order.Subject.Owner && a.traits.Contains<IronCurtain>()).FirstOrDefault();
|
||||
var ironCurtain = Game.world.Actors
|
||||
.Where(a => a.Owner == order.Subject.Owner && a.traits.Contains<IronCurtain>())
|
||||
.FirstOrDefault();
|
||||
if (ironCurtain != null)
|
||||
ironCurtain.traits.Get<RenderBuilding>().PlayCustomAnim(ironCurtain, "active");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user