From cd025b19fca918771ca3c83c847294201bce5f5f Mon Sep 17 00:00:00 2001 From: Qwertytoforty <52090703+Qwertytoforty@users.noreply.github.com> Date: Mon, 28 Aug 2023 08:17:32 -0400 Subject: [PATCH] fixes decap chance, makes it more like bone breaks (#21997) --- code/modules/surgery/organs/organ_external.dm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/code/modules/surgery/organs/organ_external.dm b/code/modules/surgery/organs/organ_external.dm index 9b8475ec1f9..07a3af5245c 100644 --- a/code/modules/surgery/organs/organ_external.dm +++ b/code/modules/surgery/organs/organ_external.dm @@ -194,6 +194,12 @@ brute *= brute_mod burn *= burn_mod + //I would move the delimb check below fractures and burn wounds, but it would cause issues. As such we save the incoming damage here. + var/original_brute = brute + var/original_burn = burn + var/limb_brute = brute_dam + var/limb_burn = burn_dam + // See if bones need to break check_fracture(brute) // See if we need to inflict severe burns @@ -271,9 +277,9 @@ //If limb took enough damage, try to cut or tear it off if(owner) if(sharp && !(limb_flags & CANNOT_DISMEMBER)) - if(brute_dam >= max_damage && prob(brute)) + if(limb_brute >= max_damage && prob(original_brute / 2)) droplimb(0, DROPLIMB_SHARP) - if(burn_dam >= max_damage && prob(burn)) + if(limb_burn >= max_damage && prob(original_burn / 2)) droplimb(0, DROPLIMB_BURN) if(owner_old)