Remove some obsolete AppearanceComponent method usages (#13726)

This commit is contained in:
Visne
2023-02-02 12:34:53 -04:00
committed by GitHub
parent 23b90de34d
commit 5a5a3afbb1
111 changed files with 427 additions and 348 deletions
@@ -1,12 +1,15 @@
using Content.Server.Storage.Components;
using Content.Shared.Rounding;
using Content.Shared.Storage.Components;
using Robust.Server.GameObjects;
using Robust.Shared.Containers;
namespace Content.Server.Storage.EntitySystems;
public sealed class StorageFillVisualizerSystem : EntitySystem
{
[Dependency] private readonly SharedAppearanceSystem _appearance = default!;
public override void Initialize()
{
base.Initialize();
@@ -40,6 +43,6 @@ public sealed class StorageFillVisualizerSystem : EntitySystem
return;
var level = ContentHelpers.RoundToEqualLevels(storage.StorageUsed, storage.StorageCapacityMax, component.MaxFillLevels);
appearance.SetData(StorageFillVisuals.FillLevel, level);
_appearance.SetData(uid, StorageFillVisuals.FillLevel, level, appearance);
}
}