diff --git a/code/__HELPERS/mob_helpers.dm b/code/__HELPERS/mob_helpers.dm index 84d38fa98a2..29785cbaa3e 100644 --- a/code/__HELPERS/mob_helpers.dm +++ b/code/__HELPERS/mob_helpers.dm @@ -706,3 +706,7 @@ GLOBAL_LIST_EMPTY(do_after_once_tracker) out_ckey = "(Disconnected)" return out_ckey + +/// rounds value to limited symbols after the period for organ damage and other values +/proc/round_health(health) + return round(health, 0.01) diff --git a/code/modules/surgery/organs/organ.dm b/code/modules/surgery/organs/organ.dm index 6a325834030..80cc843d18c 100644 --- a/code/modules/surgery/organs/organ.dm +++ b/code/modules/surgery/organs/organ.dm @@ -219,6 +219,7 @@ if(tough) return damage = clamp(damage + amount, 0, max_damage) + damage = round_health(damage) //only show this if the organ is not robotic if(owner && parent_organ && amount > 0) diff --git a/code/modules/surgery/organs/organ_external.dm b/code/modules/surgery/organs/organ_external.dm index 84683029ab1..dc6da40ef36 100644 --- a/code/modules/surgery/organs/organ_external.dm +++ b/code/modules/surgery/organs/organ_external.dm @@ -323,6 +323,8 @@ if(owner_old) owner_old.updatehealth("limb receive damage") + brute_dam = round_health(brute_dam) + burn_dam = round_health(burn_dam) return update_state() #undef LIMB_SHARP_THRESH_INT_DMG @@ -343,6 +345,8 @@ if(updating_health) owner.updatehealth("limb heal damage") + brute_dam = round_health(brute_dam) + burn_dam = round_health(burn_dam) return update_state() /obj/item/organ/external/emp_act(severity)