fix up mines

This commit is contained in:
Chris Forbes
2010-04-02 10:43:45 +13:00
parent 10e7afc10c
commit fb8549aa36
3 changed files with 6 additions and 7 deletions

View File

@@ -28,9 +28,8 @@ namespace OpenRA.Mods.RA
{ {
class MineInfo : ITraitInfo class MineInfo : ITraitInfo
{ {
public readonly int Damage = 0;
public readonly UnitMovementType[] TriggeredBy = { }; public readonly UnitMovementType[] TriggeredBy = { };
public readonly string Warhead = "ATMine"; public readonly string Weapon = "ATMine";
public readonly bool AvoidFriendly = true; public readonly bool AvoidFriendly = true;
public object Create(Actor self) { return new Mine(self); } public object Create(Actor self) { return new Mine(self); }
@@ -51,7 +50,7 @@ namespace OpenRA.Mods.RA
return; return;
var info = self.Info.Traits.Get<MineInfo>(); var info = self.Info.Traits.Get<MineInfo>();
Combat.DoExplosion(self, info.Warhead, self.CenterLocation.ToInt2(), 0); Combat.DoExplosion(self, info.Weapon, crusher.CenterLocation.ToInt2(), 0);
self.QueueActivity(new RemoveSelf()); self.QueueActivity(new RemoveSelf());
} }

View File

@@ -345,8 +345,7 @@ MRJ:
MINP: MINP:
Mine: Mine:
Damage: 1000 Weapon: APMine
Warhead: APMine
TriggeredBy: Foot, Wheel, Track TriggeredBy: Foot, Wheel, Track
AvoidFriendly: yes AvoidFriendly: yes
Unit: Unit:
@@ -358,8 +357,7 @@ MINP:
MINV: MINV:
Mine: Mine:
Damage: 1200 Weapon: ATMine
Warhead: ATMine
TriggeredBy: Wheel, Track TriggeredBy: Wheel, Track
AvoidFriendly: yes AvoidFriendly: yes
Unit: Unit:

View File

@@ -657,12 +657,14 @@ Crush:
ATMine: ATMine:
Warhead: Warhead:
Damage: 1000
Verses: 0%,0%,100%,100%,0% Verses: 0%,0%,100%,100%,0%
ImpactSound: mineblo1 ImpactSound: mineblo1
Explosion: 5 Explosion: 5
APMine: APMine:
Warhead: Warhead:
Damage: 1200
Verses: 100%,0%,0%,0%,0% Verses: 100%,0%,0%,0%,0%
ImpactSound: mine1 ImpactSound: mine1
InfDeath: 2 InfDeath: 2