Rounds all organ health damage to the second decimal (#24031)

* no more stupid values

* internal organs too

* 2 symbols

* var

* Empty-Commit
This commit is contained in:
HMBGERDO
2024-02-24 19:14:47 +01:00
committed by GitHub
parent 657ea5ac26
commit ac7752f6dc
3 changed files with 9 additions and 0 deletions
+1
View File
@@ -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)
@@ -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)