add artifact sound effects (#17792)

This commit is contained in:
Nemanja
2023-07-03 07:14:27 -04:00
committed by GitHub
parent 87eab6e322
commit b3063fbebe
11 changed files with 30 additions and 0 deletions

View File

@@ -17,6 +17,7 @@ public sealed partial class ArtifactSystem : EntitySystem
{
[Dependency] private readonly IGameTiming _gameTiming = default!;
[Dependency] private readonly IRobustRandom _random = default!;
[Dependency] private readonly SharedAudioSystem _audio = default!;
private ISawmill _sawmill = default!;
@@ -173,6 +174,7 @@ public sealed partial class ArtifactSystem : EntitySystem
if (component.CurrentNodeId == null)
return;
_audio.PlayPvs(component.ActivationSound, uid);
component.LastActivationTime = _gameTiming.CurTime;
var ev = new ArtifactActivatedEvent