Fix several traits missing OrderString checks for VoicePhraseForOrder
This commit is contained in:
committed by
Paul Chote
parent
c51f2c036a
commit
30e2b69dba
@@ -156,6 +156,9 @@ namespace OpenRA.Mods.Cnc.Traits
|
|||||||
|
|
||||||
string IOrderVoice.VoicePhraseForOrder(Actor self, Order order)
|
string IOrderVoice.VoicePhraseForOrder(Actor self, Order order)
|
||||||
{
|
{
|
||||||
|
if (order.OrderString != "DetonateAttack" && order.OrderString != "Detonate")
|
||||||
|
return null;
|
||||||
|
|
||||||
return info.Voice;
|
return info.Voice;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -62,6 +62,9 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
|
|
||||||
public string VoicePhraseForOrder(Actor self, Order order)
|
public string VoicePhraseForOrder(Actor self, Order order)
|
||||||
{
|
{
|
||||||
|
if (order.OrderString != "DeliverCash")
|
||||||
|
return null;
|
||||||
|
|
||||||
return info.Voice;
|
return info.Voice;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -64,6 +64,9 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
|
|
||||||
public string VoicePhraseForOrder(Actor self, Order order)
|
public string VoicePhraseForOrder(Actor self, Order order)
|
||||||
{
|
{
|
||||||
|
if (order.OrderString != "DeliverExperience")
|
||||||
|
return null;
|
||||||
|
|
||||||
return info.Voice;
|
return info.Voice;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user