From a1a2d27797dda3e02ebfc9af38d444f5e0a0e400 Mon Sep 17 00:00:00 2001 From: Inferno1882 <129122173+Inferno1882@users.noreply.github.com> Date: Wed, 6 Aug 2025 02:16:55 -0500 Subject: [PATCH] Raising is_malfunctioning threshold from 10 to 35 (#29918) * Raising is_malfunctioning threshold * Arm/Leg at 35, hand/feet at 20 --- code/modules/surgery/organs/organ_external.dm | 3 ++- code/modules/surgery/organs/subtypes/standard_organs.dm | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/code/modules/surgery/organs/organ_external.dm b/code/modules/surgery/organs/organ_external.dm index c56d4271cb6..0365d47bbcc 100644 --- a/code/modules/surgery/organs/organ_external.dm +++ b/code/modules/surgery/organs/organ_external.dm @@ -58,6 +58,7 @@ var/amputation_point // Descriptive string used in amputation. var/can_grasp var/can_stand + var/malfdamage var/splinted_count = 0 //Time when this organ was last splinted ///If this organ's max HP is reduced by the IPC magnetic joints implant @@ -876,7 +877,7 @@ Note that amputating the affected organ does in fact remove the infection from t return !(status & (ORGAN_MUTATED|ORGAN_DEAD)) /obj/item/organ/external/proc/is_malfunctioning() - return (is_robotic() && (brute_dam + burn_dam) >= 10 && prob(brute_dam + burn_dam) && !tough) + return (is_robotic() && (brute_dam + burn_dam) >= malfdamage && prob(brute_dam + burn_dam) && !tough) /obj/item/organ/external/remove(mob/living/user, ignore_children) diff --git a/code/modules/surgery/organs/subtypes/standard_organs.dm b/code/modules/surgery/organs/subtypes/standard_organs.dm index fd7ff2720e1..11db3702ea0 100644 --- a/code/modules/surgery/organs/subtypes/standard_organs.dm +++ b/code/modules/surgery/organs/subtypes/standard_organs.dm @@ -45,6 +45,7 @@ name = "left arm" icon_name = "l_arm" max_damage = 50 + malfdamage = 35 body_part = ARM_LEFT amputation_point = "left shoulder" can_grasp = 1 @@ -74,6 +75,7 @@ name = "left leg" icon_name = "l_leg" max_damage = 50 + malfdamage = 35 body_part = LEG_LEFT icon_position = LEFT parent_organ = "groin" @@ -113,6 +115,7 @@ icon_name = "l_foot" max_damage = 30 min_broken_damage = 15 + malfdamage = 20 w_class = WEIGHT_CLASS_SMALL body_part = FOOT_LEFT icon_position = LEFT @@ -157,6 +160,7 @@ icon_name = "l_hand" max_damage = 30 min_broken_damage = 15 + malfdamage = 20 w_class = WEIGHT_CLASS_SMALL body_part = HAND_LEFT parent_organ = "l_arm"