@@ -10,7 +10,6 @@ using Content.Shared.Emag.Systems;
|
||||
using Content.Shared.Popups;
|
||||
using Robust.Server.GameObjects;
|
||||
using Robust.Shared.Audio;
|
||||
using Robust.Shared.Audio.Systems;
|
||||
using Robust.Shared.Timing;
|
||||
|
||||
namespace Content.Server.Power.EntitySystems;
|
||||
|
||||
@@ -7,7 +7,6 @@ using Content.Shared.Examine;
|
||||
using Content.Shared.Hands.Components;
|
||||
using Content.Shared.Power;
|
||||
using Content.Shared.Verbs;
|
||||
using Robust.Server.Audio;
|
||||
using Robust.Server.GameObjects;
|
||||
using Robust.Shared.Audio;
|
||||
using Robust.Shared.Utility;
|
||||
|
||||
@@ -3,7 +3,6 @@ using Content.Server.Popups;
|
||||
using Content.Shared.DoAfter;
|
||||
using Content.Shared.Power.Generator;
|
||||
using Content.Shared.Verbs;
|
||||
using Robust.Server.Audio;
|
||||
using Robust.Server.GameObjects;
|
||||
using Robust.Shared.Player;
|
||||
using Robust.Shared.Random;
|
||||
@@ -98,7 +97,7 @@ public sealed class PortableGeneratorSystem : SharedPortableGeneratorSystem
|
||||
var clogged = _generator.GetIsClogged(uid);
|
||||
|
||||
var sound = empty ? component.StartSoundEmpty : component.StartSound;
|
||||
_audio.PlayEntity(sound, Filter.Pvs(uid), uid, true);
|
||||
_audio.Play(sound, Filter.Pvs(uid), uid, true);
|
||||
|
||||
if (!clogged && !empty && _random.Prob(component.StartChance))
|
||||
{
|
||||
|
||||
@@ -6,7 +6,8 @@ using Content.Server.Power.Nodes;
|
||||
using Content.Shared.Power.Generator;
|
||||
using Content.Shared.Timing;
|
||||
using Content.Shared.Verbs;
|
||||
using Robust.Shared.Audio.Systems;
|
||||
using Robust.Server.GameObjects;
|
||||
using Robust.Shared.Player;
|
||||
using Robust.Shared.Utility;
|
||||
|
||||
namespace Content.Server.Power.Generator;
|
||||
@@ -19,9 +20,9 @@ namespace Content.Server.Power.Generator;
|
||||
/// <seealso cref="GeneratorSystem"/>
|
||||
public sealed class PowerSwitchableSystem : SharedPowerSwitchableSystem
|
||||
{
|
||||
[Dependency] private readonly AudioSystem _audio = default!;
|
||||
[Dependency] private readonly NodeGroupSystem _nodeGroup = default!;
|
||||
[Dependency] private readonly PopupSystem _popup = default!;
|
||||
[Dependency] private readonly SharedAudioSystem _audio = default!;
|
||||
[Dependency] private readonly UseDelaySystem _useDelay = default!;
|
||||
|
||||
public override void Initialize()
|
||||
|
||||
Reference in New Issue
Block a user