rename for consistency

This commit is contained in:
Matthias Mailänder
2015-06-20 12:11:45 +02:00
parent 50e5e9df24
commit 0f8d22c9a6
7 changed files with 27 additions and 12 deletions

View File

@@ -17,7 +17,7 @@ namespace OpenRA.Mods.Common.Traits
public class DeathSoundsInfo : ITraitInfo
{
[Desc("Death notification voice.")]
public readonly string DeathSound = "Die";
[VoiceReference] public readonly string Voice = "Die";
[Desc("Multiply volume with this factor.")]
public readonly float VolumeMultiplier = 1f;
@@ -42,7 +42,7 @@ namespace OpenRA.Mods.Common.Traits
return;
if (info.DeathTypes.Intersect(e.Warhead.DamageTypes).Any())
self.PlayVoiceLocal(info.DeathSound, info.VolumeMultiplier);
self.PlayVoiceLocal(info.Voice, info.VolumeMultiplier);
}
}
}