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:
@@ -301,8 +301,8 @@ namespace Content.Server.GameObjects.Components.Kitchen
|
||||
&&
|
||||
(_currentCookTimerTime == (uint)recipeToCook.CookTime);
|
||||
SetAppearance(MicrowaveVisualState.Cooking);
|
||||
_audioSystem.Play(_startCookingSound, Owner, AudioParams.Default);
|
||||
Timer.Spawn((int)(_currentCookTimerTime * _cookTimeMultiplier), () =>
|
||||
_audioSystem.PlayFromEntity(_startCookingSound, Owner, AudioParams.Default);
|
||||
Timer.Spawn((int)(_currentCookTimerTime * _cookTimeMultiplier), (System.Action)(() =>
|
||||
{
|
||||
if (_lostPower)
|
||||
{
|
||||
@@ -332,13 +332,13 @@ namespace Content.Server.GameObjects.Components.Kitchen
|
||||
_entityManager.SpawnEntity(entityToSpawn, Owner.Transform.GridPosition);
|
||||
}
|
||||
}
|
||||
_audioSystem.PlayFromEntity(_cookingCompleteSound, Owner, AudioParams.Default.WithVolume(-1f));
|
||||
|
||||
_audioSystem.Play(_cookingCompleteSound, Owner, AudioParams.Default.WithVolume(-1f));
|
||||
SetAppearance(MicrowaveVisualState.Idle);
|
||||
_busy = false;
|
||||
|
||||
_uiDirty = true;
|
||||
});
|
||||
}));
|
||||
_lostPower = false;
|
||||
_uiDirty = true;
|
||||
}
|
||||
@@ -440,7 +440,7 @@ namespace Content.Server.GameObjects.Components.Kitchen
|
||||
|
||||
private void ClickSound()
|
||||
{
|
||||
_audioSystem.Play("/Audio/machines/machine_switch.ogg",Owner,AudioParams.Default.WithVolume(-2f));
|
||||
_audioSystem.PlayFromEntity("/Audio/machines/machine_switch.ogg",Owner,AudioParams.Default.WithVolume(-2f));
|
||||
}
|
||||
|
||||
public SuicideKind Suicide(IEntity victim, IChatManager chat)
|
||||
|
||||
Reference in New Issue
Block a user