From c22ff90bd0b7972b9861a4e3c0c0e77e7966ba55 Mon Sep 17 00:00:00 2001 From: CrazyAmphibian <0crazyamphibian@gmail.com> Date: Wed, 1 Jan 2025 22:12:53 -0800 Subject: [PATCH] Update ApcSystem.cs --- Content.Server/Power/EntitySystems/ApcSystem.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Content.Server/Power/EntitySystems/ApcSystem.cs b/Content.Server/Power/EntitySystems/ApcSystem.cs index 14dddbb43e32..3b3beb598897 100644 --- a/Content.Server/Power/EntitySystems/ApcSystem.cs +++ b/Content.Server/Power/EntitySystems/ApcSystem.cs @@ -156,10 +156,11 @@ public void UpdateUIState(EntityUid uid, return; var battery = netBat.NetworkBattery; - const int ChargeAccuracy = 5; + //const int ChargeAccuracy = 5; // TODO: Fix ContentHelpers or make a new one coz this is cooked. - var charge = ContentHelpers.RoundToNearestLevels(battery.CurrentStorage / battery.Capacity, 1.0, 100 / ChargeAccuracy) / 100f * ChargeAccuracy; + //var charge = ContentHelpers.RoundToNearestLevels(battery.CurrentStorage / battery.Capacity, 1.0, 100 / ChargeAccuracy) / 100f * ChargeAccuracy; + float charge = battery.CurrentStorage / battery.Capacity; var state = new ApcBoundInterfaceState(apc.MainBreakerEnabled, (int) MathF.Ceiling(battery.CurrentSupply), apc.LastExternalState,