Rename DeathType to DeathTypes of Explodes

This commit is contained in:
abcdefg30
2015-11-05 20:13:40 +01:00
parent a5aff66848
commit 4a4608e1f3

View File

@@ -36,7 +36,7 @@ namespace OpenRA.Mods.Common.Traits
public readonly int DamageThreshold = 0;
[Desc("DeathType(s) that trigger the explosion. Leave empty to always trigger an explosion.")]
public readonly HashSet<string> DeathType = new HashSet<string>();
public readonly HashSet<string> DeathTypes = new HashSet<string>();
public WeaponInfo WeaponInfo { get; private set; }
public WeaponInfo EmptyWeaponInfo { get; private set; }
@@ -70,7 +70,7 @@ namespace OpenRA.Mods.Common.Traits
return;
var warhead = e.Warhead as DamageWarhead;
if (info.DeathType.Count > 0 && warhead != null && !warhead.DamageTypes.Overlaps(info.DeathType))
if (info.DeathTypes.Count > 0 && warhead != null && !warhead.DamageTypes.Overlaps(info.DeathTypes))
return;
var weapon = ChooseWeaponForExplosion(self);