Fixes backup light rounding - #36060

This commit is contained in:
ShizCalev
2018-03-02 16:43:19 -05:00
committed by Jordan Brown
parent 3f66746395
commit 602de792fa

View File

@@ -388,7 +388,7 @@
if(LIGHT_BROKEN)
to_chat(user, "The [fitting] has been smashed.")
if(cell)
to_chat(user, "Its backup power charge meter reads [(cell.charge / cell.maxcharge) * 100]%.")
to_chat(user, "Its backup power charge meter reads [round((cell.charge / cell.maxcharge) * 100, 0.1)]%.")