using System.Numerics; using Content.Shared.Botany; using Content.Client.Botany.Components; using Robust.Client.GameObjects; namespace Content.Client.Botany; public sealed class PotencyVisualsSystem : VisualizerSystem { protected override void OnAppearanceChange(EntityUid uid, PotencyVisualsComponent component, ref AppearanceChangeEvent args) { if (args.Sprite == null) return; if (AppearanceSystem.TryGetData(uid, ProduceVisuals.Potency, out var potency, args.Component)) { var scale = MathHelper.Lerp(component.MinimumScale, component.MaximumScale, potency / 100); args.Sprite.Scale = new Vector2(scale, scale); } } }