Good artifact effects (#13223)
This commit is contained in:
@@ -17,9 +17,7 @@ public sealed class RandomInstrumentArtifactSystem : EntitySystem
|
||||
|
||||
private void OnStartup(EntityUid uid, RandomInstrumentArtifactComponent component, ComponentStartup args)
|
||||
{
|
||||
if (!TryComp<SharedInstrumentComponent>(uid, out var instrument))
|
||||
return;
|
||||
|
||||
var instrument = EnsureComp<InstrumentComponent>(uid);
|
||||
_instrument.SetInstrumentProgram(instrument, (byte) _random.Next(0, 127), 0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user