Refactor all references to AudioSystem functions now that the old ones are obsolete. (#1081)
Co-authored-by: FL-OZ <anotherscuffed@gmail.com>
This commit is contained in:
@@ -130,9 +130,9 @@ namespace Content.Server.GameObjects.Components.Construction
|
||||
return false;
|
||||
}
|
||||
if (matStep.Material == MaterialType.Cable)
|
||||
sound.Play("/Audio/items/zip.ogg", Transform.GridPosition);
|
||||
sound.PlayAtCoords("/Audio/items/zip.ogg", Transform.GridPosition);
|
||||
else
|
||||
sound.Play("/Audio/items/deconstruct.ogg", Transform.GridPosition);
|
||||
sound.PlayAtCoords("/Audio/items/deconstruct.ogg", Transform.GridPosition);
|
||||
return true;
|
||||
case ConstructionStepTool toolStep:
|
||||
if (!slapped.TryGetComponent<ToolComponent>(out var tool))
|
||||
|
||||
@@ -84,7 +84,7 @@ namespace Content.Server.GameObjects.Components.Construction
|
||||
}
|
||||
|
||||
// OK WE'RE GOOD CONSTRUCTION STARTED.
|
||||
EntitySystem.Get<AudioSystem>().Play("/Audio/items/deconstruct.ogg", loc);
|
||||
EntitySystem.Get<AudioSystem>().PlayAtCoords("/Audio/items/deconstruct.ogg", loc);
|
||||
if (prototype.Stages.Count == 2)
|
||||
{
|
||||
// Exactly 2 stages, so don't make an intermediate frame.
|
||||
|
||||
Reference in New Issue
Block a user