Files
Delta-v/Content.Client/_DV/Kitchen/DeepFryerVisualizerSystem.cs
T
fb98bfe575 deepfryer 2.0 (#5043)
* was it worth the hype

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* minor stuff

* multi-ingredient recipe support

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* oil transfer

* explosions and fire

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* make the yaml linter happy

* YML recipes

* typo ops

* review

* Apply suggestions from code review

Milon told me to.

Signed-off-by: Vanessa <908648+ShepardToTheStars@users.noreply.github.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Signed-off-by: Vanessa <908648+ShepardToTheStars@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Stop-Signs <stopsign221@gmail.com>
Co-authored-by: Vanessa <908648+ShepardToTheStars@users.noreply.github.com>
2026-01-06 12:41:29 -06:00

22 lines
766 B
C#

using Content.Shared._DV.Kitchen.Components;
using Content.Shared.Chemistry.Components;
using Robust.Client.GameObjects;
namespace Content.Client._DV.Kitchen;
public sealed class DeepFryerVisualizerSystem : VisualizerSystem<DeepFryerComponent>
{
[Dependency] private readonly SharedAppearanceSystem _appearance = default!;
protected override void OnAppearanceChange(EntityUid uid, DeepFryerComponent component, ref AppearanceChangeEvent args)
{
if (!_appearance.TryGetData(uid, DeepFryerVisuals.Bubbling, out bool isBubbling, args.Component) ||
!TryComp<SolutionContainerVisualsComponent>(uid, out var scvComponent))
{
return;
}
scvComponent.FillBaseName = isBubbling ? "on-" : "off-";
}
}