mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-13 08:03:43 +01:00
Tweak: SMES charge overlay is now more accurate (#26228)
This commit is contained in:
@@ -244,7 +244,7 @@
|
||||
return ..()
|
||||
|
||||
/obj/machinery/power/smes/proc/chargedisplay()
|
||||
return clamp(round(5.5 * charge / capacity), 0, 5)
|
||||
return clamp(round(ceil(charge * 5 / capacity)), 0, 5)
|
||||
|
||||
/obj/machinery/power/smes/process()
|
||||
if(stat & BROKEN)
|
||||
|
||||
Reference in New Issue
Block a user