InfDeath -> DeathType renaming.

This commit is contained in:
reaperrr
2014-08-30 01:47:20 +02:00
parent c1ca55b303
commit 3725ce4f7b
17 changed files with 228 additions and 228 deletions

View File

@@ -22,7 +22,7 @@ namespace OpenRA.Mods.RA
public readonly string EmptyWeapon = "UnitExplode";
public readonly int Chance = 100;
public readonly string[] InfDeath = null;
public readonly string[] DeathType = null;
public object Create(ActorInitializer init) { return new Explodes(this); }
}
@@ -41,7 +41,7 @@ namespace OpenRA.Mods.RA
if (self.World.SharedRandom.Next(100) > explodesInfo.Chance)
return;
if (explodesInfo.InfDeath != null && e.Warhead != null && !explodesInfo.InfDeath.Contains(e.Warhead.InfDeath))
if (explodesInfo.DeathType != null && e.Warhead != null && !explodesInfo.DeathType.Contains(e.Warhead.DeathType))
return;
var weaponName = ChooseWeaponForExplosion(self);