From 9a44dfd82f132cb6fd37662ba26ba27100dd9861 Mon Sep 17 00:00:00 2001 From: FN Date: Mon, 6 May 2024 18:13:30 +0700 Subject: [PATCH] Ghosts can understand vulps --- Content.Server/Corvax/VulpLanguage/VulpLanguageSystem.cs | 4 +--- ...eListenerComponent.cs => VulpLanguageListenerComponent.cs} | 2 +- .../Prototypes/Corvax/Entities/Mobs/Species/vulpkanin.yml | 2 +- Resources/Prototypes/Entities/Mobs/Player/observer.yml | 1 + 4 files changed, 4 insertions(+), 5 deletions(-) rename Content.Server/_NF/VulpLanguage/{VulpLangaugeListenerComponent.cs => VulpLanguageListenerComponent.cs} (55%) diff --git a/Content.Server/Corvax/VulpLanguage/VulpLanguageSystem.cs b/Content.Server/Corvax/VulpLanguage/VulpLanguageSystem.cs index 93d2e6b2520..6a28cd9aa9f 100644 --- a/Content.Server/Corvax/VulpLanguage/VulpLanguageSystem.cs +++ b/Content.Server/Corvax/VulpLanguage/VulpLanguageSystem.cs @@ -7,8 +7,6 @@ using Content.Server.PowerCell; using Content.Server.VulpLangauge; using Content.Shared.Inventory; -using Content.Shared.Mind; -using Content.Shared.Players; using Content.Shared.Storage; namespace Content.Server.Corvax.VulpLanguage; @@ -134,7 +132,7 @@ private void OnCheckLanguageUnderstand(CheckLanguageUnderstandEvent e) if (!EntityManager.HasComponent(e.Sender)) return; - if (EntityManager.HasComponent(e.Listener)) + if (EntityManager.HasComponent(e.Listener)) e.Understand = true; } } diff --git a/Content.Server/_NF/VulpLanguage/VulpLangaugeListenerComponent.cs b/Content.Server/_NF/VulpLanguage/VulpLanguageListenerComponent.cs similarity index 55% rename from Content.Server/_NF/VulpLanguage/VulpLangaugeListenerComponent.cs rename to Content.Server/_NF/VulpLanguage/VulpLanguageListenerComponent.cs index 5f4ca7f3ca3..3ebfb2b84ba 100644 --- a/Content.Server/_NF/VulpLanguage/VulpLangaugeListenerComponent.cs +++ b/Content.Server/_NF/VulpLanguage/VulpLanguageListenerComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.VulpLangauge { [RegisterComponent] - public partial class VulpLangaugeListenerComponent : Component + public partial class VulpLanguageListenerComponent : Component { } } diff --git a/Resources/Prototypes/Corvax/Entities/Mobs/Species/vulpkanin.yml b/Resources/Prototypes/Corvax/Entities/Mobs/Species/vulpkanin.yml index c9a29ea6210..3a206eecaab 100644 --- a/Resources/Prototypes/Corvax/Entities/Mobs/Species/vulpkanin.yml +++ b/Resources/Prototypes/Corvax/Entities/Mobs/Species/vulpkanin.yml @@ -53,7 +53,7 @@ Female: FemaleVulpkanin Unsexed: MaleVulpkanin - type: VulpLanguageSpeaker # Corvax-Frontier-Vulpkanin - - type: VulpLangaugeListener # Corvax-Frontier-Vulpkanin + - type: VulpLanguageListener # Corvax-Frontier-Vulpkanin - type: VulpGiveTranslator # Corvax-Frontier-Vulpkanin - type: Speech # Corvax-Frontier-Vulpkanin speechSounds: Vulpkanin diff --git a/Resources/Prototypes/Entities/Mobs/Player/observer.yml b/Resources/Prototypes/Entities/Mobs/Player/observer.yml index 114c3fa7479..4e4d0e530f1 100644 --- a/Resources/Prototypes/Entities/Mobs/Player/observer.yml +++ b/Resources/Prototypes/Entities/Mobs/Player/observer.yml @@ -38,6 +38,7 @@ baseWalkSpeed: 8 - type: MovementIgnoreGravity - type: IntrinsicRadioReceiver + - type: VulpLanguageListener - type: ActiveRadio receiveAllChannels: true globalReceive: true