using Content.Shared.Chemistry;
using Content.Shared.Chemistry.Reagent;
+using Content.Shared.Rounding;
using Robust.Client.GameObjects;
using Robust.Shared.Prototypes;
Logger.Error("Attempted to set solution container visuals volume ratio on " + ToPrettyString(uid) + " to a value greater than 1. Volume should never be greater than max volume!");
fraction = 1f;
}
-
if (component.Metamorphic)
{
if (args.Sprite.LayerMapTryGet(component.BaseLayer, out var baseLayer))
}
}
- var closestFillSprite = (int) Math.Round(fraction * component.MaxFillLevels);
+ int closestFillSprite = ContentHelpers.RoundToLevels(fraction, 1, component.MaxFillLevels + 1);
if (closestFillSprite > 0)
{