Skip to content

Commit

Permalink
EMP
Browse files Browse the repository at this point in the history
  • Loading branch information
dvir001 committed Jul 27, 2023
1 parent eb4c0d3 commit 9430877
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion Content.Server/_NF/M_Emp/M_EmpSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion Resources/Locale/en-US/m_emp/m_emp-system.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 9430877

Please sign in to comment.