Refactor: Chat transmission ranges (+ a little preparation for downstream fork functionality) (#16026)
This commit is contained in:
@@ -91,14 +91,14 @@ public sealed class CluwneSystem : EntitySystem
|
||||
if (_robustRandom.Prob(component.GiggleRandomChance))
|
||||
{
|
||||
_audio.PlayPvs(component.SpawnSound, uid);
|
||||
_chat.TrySendInGameICMessage(uid, "honks", InGameICChatType.Emote, false, false);
|
||||
_chat.TrySendInGameICMessage(uid, "honks", InGameICChatType.Emote, ChatTransmitRange.Normal);
|
||||
}
|
||||
|
||||
else if (_robustRandom.Prob(component.KnockChance))
|
||||
{
|
||||
_audio.PlayPvs(component.KnockSound, uid);
|
||||
_stunSystem.TryParalyze(uid, TimeSpan.FromSeconds(component.ParalyzeTime), true);
|
||||
_chat.TrySendInGameICMessage(uid, "spasms", InGameICChatType.Emote, false, false);
|
||||
_chat.TrySendInGameICMessage(uid, "spasms", InGameICChatType.Emote, ChatTransmitRange.Normal);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user