Changes SM integrity rounding (#1925)
This commit is contained in:
committed by
kevinz000
parent
be15914a6f
commit
be5ad79fa2
@@ -202,7 +202,7 @@
|
||||
|
||||
/obj/machinery/power/supermatter_shard/proc/get_integrity()
|
||||
var/integrity = damage / explosion_point
|
||||
integrity = round(100 - integrity * 100)
|
||||
integrity = round(100 - integrity * 100, 0.01)
|
||||
integrity = integrity < 0 ? 0 : integrity
|
||||
return integrity
|
||||
|
||||
|
||||
Reference in New Issue
Block a user