Rename DummyPuppet to VentriloquistPuppet (#19777)

This commit is contained in:
Leon Friedrich
2023-09-16 16:54:46 +12:00
committed by GitHub
parent a9cc99f80c
commit f7d7f5cc7f
10 changed files with 153 additions and 194 deletions

View File

@@ -46,12 +46,12 @@ namespace Content.Server.Speech.Muting
private void OnSpeakAttempt(EntityUid uid, MutedComponent component, SpeakAttemptEvent args)
{
// TODO something better than this.
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 if (HasComp<VentriloquistPuppetComponent>(uid))
_popupSystem.PopupEntity(Loc.GetString("ventriloquist-puppet-cant-speak"), uid, uid);
else
_popupSystem.PopupEntity(Loc.GetString("speech-muted"), uid, uid);