Merge pull request #3243 from ScottNZ/balance

RA Balance (destructible mines; badr and mamooth and cruiser buff)
This commit is contained in:
Matthias Mailänder
2013-05-10 02:55:17 -07:00
5 changed files with 34 additions and 26 deletions

View File

@@ -20,7 +20,6 @@ namespace OpenRA.Mods.RA
class MineInfo : ITraitInfo class MineInfo : ITraitInfo
{ {
public readonly string[] CrushClasses = { }; public readonly string[] CrushClasses = { };
[WeaponReference] public readonly string Weapon = "ATMine";
public readonly bool AvoidFriendly = true; public readonly bool AvoidFriendly = true;
public readonly string[] DetonateClasses = { }; public readonly string[] DetonateClasses = { };
@@ -44,15 +43,14 @@ namespace OpenRA.Mods.RA
public void OnCrush(Actor crusher) public void OnCrush(Actor crusher)
{ {
if (crusher.HasTrait<MineImmune>() || self.Owner.Stances[crusher.Owner] == Stance.Ally) if (crusher.HasTrait<MineImmune>() || (self.Owner.Stances[crusher.Owner] == Stance.Ally && info.AvoidFriendly))
return; return;
var mobile = crusher.TraitOrDefault<Mobile>(); var mobile = crusher.TraitOrDefault<Mobile>();
if (mobile != null && !info.DetonateClasses.Intersect(mobile.Info.Crushes).Any()) if (mobile != null && !info.DetonateClasses.Intersect(mobile.Info.Crushes).Any())
return; return;
Combat.DoExplosion(self, info.Weapon, crusher.CenterLocation, 0); self.Kill(crusher);
self.QueueActivity(new RemoveSelf());
} }
public bool CrushableBy(string[] crushClasses, Player owner) public bool CrushableBy(string[] crushClasses, Player owner)

View File

@@ -3,7 +3,7 @@ BADR:
LZRange: 4 LZRange: 4
Inherits: ^Plane Inherits: ^Plane
Health: Health:
HP: 60 HP: 300
Armor: Armor:
Type: Light Type: Light
Plane: Plane:
@@ -42,7 +42,7 @@ BADR.bomber:
Weapon: ParaBomb Weapon: ParaBomb
Inherits: ^Plane Inherits: ^Plane
Health: Health:
HP: 60 HP: 300
Armor: Armor:
Type: Light Type: Light
Plane: Plane:

View File

@@ -164,8 +164,8 @@ CA:
Armor: Armor:
Type: Heavy Type: Heavy
Mobile: Mobile:
ROT: 2 ROT: 3
Speed: 2 Speed: 3
RevealsShroud: RevealsShroud:
Range: 7 Range: 7
Turreted@PRIMARY: Turreted@PRIMARY:

View File

@@ -651,12 +651,15 @@ World:
MINP: MINP:
Mine: Mine:
Weapon: APMine
CrushClasses: apmine,atmine CrushClasses: apmine,atmine
DetonateClasses: apmine DetonateClasses: apmine,atmine
AvoidFriendly: yes AvoidFriendly: no
Explodes:
Weapon: APMine
Health: Health:
HP: 1 HP: 50
Armor:
Type: Light
RenderSimple: RenderSimple:
BelowUnits: BelowUnits:
Cloak: Cloak:
@@ -667,16 +670,21 @@ MINP:
Name: Anti-Personnel Mine Name: Anti-Personnel Mine
Icon: jmin Icon: jmin
ProximityCaptor: ProximityCaptor:
Types:Mine Types: Mine
TargetableUnit:
TargetTypes: Ground
MINV: MINV:
Mine: Mine:
Weapon: ATMine
CrushClasses: atmine,apmine CrushClasses: atmine,apmine
DetonateClasses: atmine DetonateClasses: atmine
AvoidFriendly: yes AvoidFriendly: no
Explodes:
Weapon: ATMine
Health: Health:
HP: 1 HP: 50
Armor:
Type: Light
RenderSimple: RenderSimple:
BelowUnits: BelowUnits:
Cloak: Cloak:
@@ -687,7 +695,9 @@ MINV:
Name: Anti-Tank Mine Name: Anti-Tank Mine
Icon: jmin Icon: jmin
ProximityCaptor: ProximityCaptor:
Types:Mine Types: Mine
TargetableUnit:
TargetTypes: Ground
CRATE: CRATE:
Tooltip: Tooltip:

View File

@@ -462,7 +462,7 @@ Grenade:
WaterExplosion: small_splash WaterExplosion: small_splash
InfDeath: 4 InfDeath: 4
SmudgeType: Crater SmudgeType: Crater
Damage: 50 Damage: 60
TurretGun: TurretGun:
ROF: 30 ROF: 30
@@ -491,7 +491,7 @@ MammothTusk:
Burst: 2 Burst: 2
ValidTargets: Ground, Air ValidTargets: Ground, Air
Projectile: Missile Projectile: Missile
Speed: 30 Speed: 40
Arm: 2 Arm: 2
High: true High: true
Shadow: false Shadow: false
@@ -500,7 +500,7 @@ MammothTusk:
ContrailLength: 10 ContrailLength: 10
Inaccuracy: 3 Inaccuracy: 3
Image: DRAGON Image: DRAGON
ROT: 10 ROT: 15
RangeLimit: 40 RangeLimit: 40
Warhead: Warhead:
Spread: 6 Spread: 6
@@ -721,11 +721,11 @@ RedEye:
Speed: 12 Speed: 12
High: true High: true
Angle: .1 Angle: .1
Inaccuracy: 80 Inaccuracy: 70
Image: 120MM Image: 120MM
ContrailLength: 30 ContrailLength: 30
Warhead: Warhead:
Spread: 3 Spread: 5
Versus: Versus:
None: 60% None: 60%
Wood: 75% Wood: 75%
@@ -756,7 +756,7 @@ SubMissile:
Warhead: Warhead:
Spread: 10 Spread: 10
Versus: Versus:
None: 40%, None: 40%
Light: 30% Light: 30%
Heavy: 30% Heavy: 30%
Explosion: large_explosion Explosion: large_explosion
@@ -1161,11 +1161,11 @@ ATMine:
APMine: APMine:
Warhead: Warhead:
Damage: 700 Damage: 500
Versus: Versus:
Wood: 0% Wood: 0%
Light: 0% Light: 10%
Heavy: 0% Heavy: 10%
Concrete: 0% Concrete: 0%
ImpactSound: mine1 ImpactSound: mine1
InfDeath: 3 InfDeath: 3