diff --git a/Content.Server/Chat/Systems/ChatSystem.cs b/Content.Server/Chat/Systems/ChatSystem.cs index 1aab98a2f55..5a5ffbda2bb 100644 --- a/Content.Server/Chat/Systems/ChatSystem.cs +++ b/Content.Server/Chat/Systems/ChatSystem.cs @@ -255,7 +255,7 @@ public void TrySendInGameICMessage( { if (TryProccessRadioMessage(source, message, out var modMessage, out var channel)) { - SendEntityWhisper(source, message, language, range, channel, nameOverride, hideLog, ignoreActionBlocker); + SendEntityWhisper(source, modMessage, language, range, channel, nameOverride, hideLog, ignoreActionBlocker); return; } } diff --git a/Content.Server/Radio/EntitySystems/RadioSystem.cs b/Content.Server/Radio/EntitySystems/RadioSystem.cs index 7d64ff7422d..9994e161fbe 100644 --- a/Content.Server/Radio/EntitySystems/RadioSystem.cs +++ b/Content.Server/Radio/EntitySystems/RadioSystem.cs @@ -114,20 +114,13 @@ public void SendRadioMessage(EntityUid messageSource, LanguageMessage message, R name = FormattedMessage.EscapeText(name); SpeechVerbPrototype speech; - SpeechVerbPrototype? languageSpeech; if (mask != null && mask.Enabled && mask.SpeechVerb != null && _prototype.TryIndex(mask.SpeechVerb, out var proto)) - { speech = proto; - languageSpeech = proto; - } else - { speech = _chat.GetSpeechVerb(messageSource, message.OriginalMessage); - languageSpeech = message.Message is not null ? _chat.GetSpeechVerb(messageSource, message.Message) : null; - } var content = escapeMarkup ? FormattedMessage.EscapeText(message.OriginalMessage) @@ -146,11 +139,11 @@ public void SendRadioMessage(EntityUid messageSource, LanguageMessage message, R ("name", name), ("message", content)); - var wrappedLanguageMessage = languageContent is not null ? Loc.GetString(languageSpeech!.Bold ? "chat-radio-message-wrap-bold" : "chat-radio-message-wrap", + var wrappedLanguageMessage = languageContent is not null ? Loc.GetString(speech!.Bold ? "chat-radio-message-wrap-bold" : "chat-radio-message-wrap", ("color", channel.Color), - ("fontType", languageSpeech.FontId), - ("fontSize", languageSpeech.FontSize), - ("verb", Loc.GetString(_random.Pick(languageSpeech.SpeechVerbStrings))), + ("fontType", speech.FontId), + ("fontSize", speech.FontSize), + ("verb", Loc.GetString(_random.Pick(speech.SpeechVerbStrings))), ("channel", $"\\[{channel.LocalizedName}\\]"), ("name", name), ("message", languageContent)) : null; diff --git a/Resources/Prototypes/Catalog/VendingMachines/Inventories/vendomat.yml b/Resources/Prototypes/Catalog/VendingMachines/Inventories/vendomat.yml index f494bbc2c4c..584e2ce5080 100644 --- a/Resources/Prototypes/Catalog/VendingMachines/Inventories/vendomat.yml +++ b/Resources/Prototypes/Catalog/VendingMachines/Inventories/vendomat.yml @@ -11,5 +11,5 @@ CapacitorStockPart: 8 MicroManipulatorStockPart: 8 Beaker: 8 # Frontier - beakers are required for some machines - VulpTranslator: 10 + Translator: 10 # Corvax-Frontier AirFreshener: 10 diff --git a/Resources/Prototypes/Corvax/Entities/Objects/Devices/translator.yml b/Resources/Prototypes/Corvax/Entities/Objects/Devices/translator.yml index ca3963515ae..b92e14cdd09 100644 --- a/Resources/Prototypes/Corvax/Entities/Objects/Devices/translator.yml +++ b/Resources/Prototypes/Corvax/Entities/Objects/Devices/translator.yml @@ -9,3 +9,13 @@ layers: - state: icon - type: LanguageTranslator + +- type: entity + id: EmptyTranslator + parent: Translator + suffix: Empty + components: + - type: ItemSlots + slots: + cell_slot: + name: power-cell-slot-component-slot-name-default diff --git a/Resources/Prototypes/Corvax/Lathes/tools.yml b/Resources/Prototypes/Corvax/Lathes/tools.yml new file mode 100644 index 00000000000..5577d2d9c46 --- /dev/null +++ b/Resources/Prototypes/Corvax/Lathes/tools.yml @@ -0,0 +1,8 @@ +- type: latheRecipe + id: Translator + result: EmptyTranslator + category: Tools + completetime: 2 + materials: + Steel: 200 + Plastic: 200 diff --git a/Resources/Prototypes/Entities/Structures/Machines/lathe.yml b/Resources/Prototypes/Entities/Structures/Machines/lathe.yml index ec712c3171c..3d39b96a842 100644 --- a/Resources/Prototypes/Entities/Structures/Machines/lathe.yml +++ b/Resources/Prototypes/Entities/Structures/Machines/lathe.yml @@ -91,6 +91,7 @@ - Wrench - Crowbar - Multitool + - Translator # Corvax-Frontier - NetworkConfigurator - SprayPainter - FlashlightLantern