mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 02:54:41 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user