From 943087763239464d3573f0c6b2a4407cc969fd7f Mon Sep 17 00:00:00 2001 From: Dvir Date: Thu, 27 Jul 2023 18:16:45 +0300 Subject: [PATCH] EMP --- Content.Server/_NF/M_Emp/M_EmpSystem.cs | 7 ++++++- Resources/Locale/en-US/m_emp/m_emp-system.ftl | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Content.Server/_NF/M_Emp/M_EmpSystem.cs b/Content.Server/_NF/M_Emp/M_EmpSystem.cs index 40c060a2072..6b93211be80 100644 --- a/Content.Server/_NF/M_Emp/M_EmpSystem.cs +++ b/Content.Server/_NF/M_Emp/M_EmpSystem.cs @@ -215,7 +215,12 @@ private void StartGenerator(EntityUid uid, M_EmpGeneratorComponent component, En component.GeneratorState = new GeneratorState(GeneratorStateType.Activating, gridState.CurrentTime + component.ActivatingTime); RaiseLocalEvent(new M_EmpGeneratorActivatedEvent(uid)); - Report(uid, component.M_EmpChannel, "m_emp-system-report-activate-success"); + + var station = _station.GetOwningStation(uid); + var stationName = station is null ? null : Name(station.Value); + + Report(uid, component.M_EmpChannel, "m_emp-system-report-activate-success", ("grid", stationName)); + break; case GeneratorStateType.Activating: case GeneratorStateType.Engaged: diff --git a/Resources/Locale/en-US/m_emp/m_emp-system.ftl b/Resources/Locale/en-US/m_emp/m_emp-system.ftl index ff3222329c1..0142a0646ff 100644 --- a/Resources/Locale/en-US/m_emp/m_emp-system.ftl +++ b/Resources/Locale/en-US/m_emp/m_emp-system.ftl @@ -5,7 +5,7 @@ m_emp-system-announcement-recharging = Recharging. m_emp-system-report-already-active = The M_EMP Generator is already active. m_emp-system-report-cooling-down = The M_EMP Generator is cooling down. -m_emp-system-report-activate-success = The M_EMP Generator engaging on GRID at CORDS! +m_emp-system-report-activate-success = The M_EMP Generator engaging on {$grid}! m_emp-system-generator-examined-inactive = The M_EMP Generator is inactive. m_emp-system-generator-examined-starting = The M_EMP Generator is starting up.