Don't give an okay voice when not allowed to move into shroud.
This commit is contained in:
committed by
abcdefg30
parent
d4340fa799
commit
b27289106d
@@ -668,6 +668,9 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
|
|
||||||
public string VoicePhraseForOrder(Actor self, Order order)
|
public string VoicePhraseForOrder(Actor self, Order order)
|
||||||
{
|
{
|
||||||
|
if (!Info.MoveIntoShroud && !self.Owner.Shroud.IsExplored(order.TargetLocation))
|
||||||
|
return null;
|
||||||
|
|
||||||
switch (order.OrderString)
|
switch (order.OrderString)
|
||||||
{
|
{
|
||||||
case "Move":
|
case "Move":
|
||||||
|
|||||||
@@ -83,6 +83,9 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
|
|
||||||
string IOrderVoice.VoicePhraseForOrder(Actor self, Order order)
|
string IOrderVoice.VoicePhraseForOrder(Actor self, Order order)
|
||||||
{
|
{
|
||||||
|
if (!info.MoveIntoShroud && !self.Owner.Shroud.IsExplored(order.TargetLocation))
|
||||||
|
return null;
|
||||||
|
|
||||||
if (order.OrderString == "AttackMove" || order.OrderString == "AssaultMove")
|
if (order.OrderString == "AttackMove" || order.OrderString == "AssaultMove")
|
||||||
return info.Voice;
|
return info.Voice;
|
||||||
|
|
||||||
|
|||||||
@@ -649,6 +649,9 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
|
|
||||||
public string VoicePhraseForOrder(Actor self, Order order)
|
public string VoicePhraseForOrder(Actor self, Order order)
|
||||||
{
|
{
|
||||||
|
if (!Info.MoveIntoShroud && !self.Owner.Shroud.IsExplored(order.TargetLocation))
|
||||||
|
return null;
|
||||||
|
|
||||||
switch (order.OrderString)
|
switch (order.OrderString)
|
||||||
{
|
{
|
||||||
case "Move":
|
case "Move":
|
||||||
|
|||||||
Reference in New Issue
Block a user