Toy Box filled with toys (ready for merge) (#16252)
This commit is contained in:
@@ -4,6 +4,7 @@ using Content.Server.Popups;
|
||||
using Content.Server.Speech.Components;
|
||||
using Content.Server.Speech.EntitySystems;
|
||||
using Content.Shared.Chat.Prototypes;
|
||||
using Content.Shared.Puppet;
|
||||
using Content.Shared.Speech;
|
||||
|
||||
namespace Content.Server.Speech.Muting
|
||||
@@ -36,6 +37,7 @@ namespace Content.Server.Speech.Muting
|
||||
|
||||
if (HasComp<MimePowersComponent>(uid))
|
||||
_popupSystem.PopupEntity(Loc.GetString("mime-cant-speak"), uid, uid);
|
||||
|
||||
else
|
||||
_popupSystem.PopupEntity(Loc.GetString("speech-muted"), uid, uid);
|
||||
args.Handled = true;
|
||||
@@ -46,8 +48,13 @@ namespace Content.Server.Speech.Muting
|
||||
{
|
||||
if (HasComp<MimePowersComponent>(uid))
|
||||
_popupSystem.PopupEntity(Loc.GetString("mime-cant-speak"), uid, uid);
|
||||
|
||||
if (HasComp<PuppetDummyComponent>(uid))
|
||||
_popupSystem.PopupEntity(Loc.GetString("dummy-cant-speak"), uid, uid);
|
||||
|
||||
else
|
||||
_popupSystem.PopupEntity(Loc.GetString("speech-muted"), uid, uid);
|
||||
|
||||
args.Cancel();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user