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