stable, incomplete c4 action

This commit is contained in:
Chris Forbes
2009-12-28 19:03:48 +13:00
parent ce69c98270
commit 436b261abf
4 changed files with 5 additions and 1 deletions

View File

@@ -138,6 +138,7 @@ namespace OpenRa.Game
switch( s )
{
case "Attack": return Cursor.Attack;
case "C4": return Cursor.C4;
case "Move":
if (movement.CanEnterCell(location))
return Cursor.Move;

View File

@@ -23,5 +23,6 @@ namespace OpenRa.Game
public static Cursor Enter { get { return new Cursor("enter"); } }
public static Cursor DeployBlocked { get { return new Cursor("deploy-blocked"); } }
public static Cursor Chronoshift { get { return new Cursor("chrono"); } }
public static Cursor C4 { get { return new Cursor("c4"); } }
}
}

View File

@@ -8,6 +8,8 @@ namespace OpenRa.Game.Traits
{
class C4Demolition : IOrder
{
public C4Demolition(Actor self) { }
public Order IssueOrder(Actor self, int2 xy, MouseInput mi, Actor underCursor)
{
if (underCursor == null) return null;

View File

@@ -580,7 +580,7 @@ LongDesc=Infiltrates enemy refineries & \nsilos, and steals money stored there.\
[E7]
Description=Tanya
Voice=TanyaVoice
Traits=Unit, Mobile, RenderInfantry, AttackBase, TakeCover, SquishByTank, AutoTarget
Traits=Unit, Mobile, RenderInfantry, C4Demolition, AttackBase, TakeCover, SquishByTank, AutoTarget
LongDesc=Elite commando infantry, armed with \ndual pistols and C4.\n Strong vs Infantry, Buildings\n Weak vs Vehicles\n Special Ability: Destroy Building with C4
[MEDI]
Description=Medic