Reformat 'PoweredIdle' to 'Idle'
This commit is contained in:
@@ -17,11 +17,11 @@ namespace Content.Client.GameObjects.Components.Kitchen
|
||||
var sprite = component.Owner.GetComponent<ISpriteComponent>();
|
||||
if (!component.TryGetData(PowerDeviceVisuals.VisualState, out MicrowaveVisualState state))
|
||||
{
|
||||
state = MicrowaveVisualState.PoweredIdle;
|
||||
state = MicrowaveVisualState.Idle;
|
||||
}
|
||||
switch (state)
|
||||
{
|
||||
case MicrowaveVisualState.PoweredIdle:
|
||||
case MicrowaveVisualState.Idle:
|
||||
sprite.LayerSetState(MicrowaveVisualizerLayers.Base, "mw");
|
||||
sprite.LayerSetState(MicrowaveVisualizerLayers.BaseUnlit, "mw_unlit");
|
||||
break;
|
||||
|
||||
@@ -83,7 +83,7 @@ namespace Content.Server.GameObjects.Components.Kitchen
|
||||
_entityManager.SpawnEntity(r.Result, Owner.Transform.GridPosition);
|
||||
|
||||
_audioSystem.Play("/Audio/machines/ding.ogg");
|
||||
SetAppearance(MicrowaveVisualState.PoweredIdle);
|
||||
SetAppearance(MicrowaveVisualState.Idle);
|
||||
});
|
||||
return;
|
||||
}
|
||||
@@ -95,7 +95,7 @@ namespace Content.Server.GameObjects.Components.Kitchen
|
||||
_contents.RemoveAllSolution();
|
||||
_entityManager.SpawnEntity(_badRecipeName, Owner.Transform.GridPosition);
|
||||
_audioSystem.Play("/Audio/machines/ding.ogg");
|
||||
SetAppearance(MicrowaveVisualState.PoweredIdle);
|
||||
SetAppearance(MicrowaveVisualState.Idle);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -9,8 +9,7 @@ namespace Content.Shared.Kitchen
|
||||
[Serializable, NetSerializable]
|
||||
public enum MicrowaveVisualState
|
||||
{
|
||||
Off,
|
||||
PoweredIdle,
|
||||
Idle,
|
||||
Cooking
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user