Makes more stuff destructible/breakable (#4081)

This commit is contained in:
Swept
2021-06-19 19:34:01 +00:00
committed by GitHub
parent 6a646d25ca
commit a51305466e
17 changed files with 201 additions and 43 deletions

View File

@@ -1,4 +1,4 @@
using Content.Client.Sound;
using Content.Client.Sound;
using Content.Shared.Kitchen.Components;
using Content.Shared.Power;
using Content.Shared.Sound;
@@ -25,6 +25,11 @@ namespace Content.Client.Kitchen.Visualizers
}
switch (state)
{
case MicrowaveVisualState.Broken:
sprite.LayerSetState(MicrowaveVisualizerLayers.BaseUnlit, "mwb");
loopingSoundComponent?.StopAllSounds();
break;
case MicrowaveVisualState.Idle:
sprite.LayerSetState(MicrowaveVisualizerLayers.Base, "mw");
sprite.LayerSetState(MicrowaveVisualizerLayers.BaseUnlit, "mw_unlit");