From 81c478dae922f9abbf3bb32cda821cf257412e00 Mon Sep 17 00:00:00 2001 From: Iajret Creature <122297233+Steals-The-PRs@users.noreply.github.com> Date: Wed, 6 Mar 2024 19:38:02 +0300 Subject: [PATCH] [MIRROR] fixes extra prob() in living flesh Life proc (#2249) * fixes extra prob() in living flesh Life proc (#81784) ## About The Pull Request SRT_PROB is prob() already, removed extra in `/mob/living/basic/living_limb_flesh/Life` ## Why It's Good For The Game in this commit https://github.com/tgstation/tgstation/pull/79149/commits/913802c076daefa533f3a2a3f2011ebb54d71659 in this pr https://github.com/tgstation/tgstation/pull/79149 the author did it by accident, I think. Because It is very low chance ## Changelog :cl: fix: fixed the chances of living flesh actions /:cl: * fixes extra prob() in living flesh Life proc --------- Co-authored-by: NovaBot <154629622+NovaBot13@users.noreply.github.com> Co-authored-by: Rerik007 <120549107+Rerik007@users.noreply.github.com> --- code/modules/mob/living/basic/ruin_defender/flesh.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/living/basic/ruin_defender/flesh.dm b/code/modules/mob/living/basic/ruin_defender/flesh.dm index 38e56f84c84..e33cdcad1a1 100644 --- a/code/modules/mob/living/basic/ruin_defender/flesh.dm +++ b/code/modules/mob/living/basic/ruin_defender/flesh.dm @@ -49,12 +49,12 @@ if(isnull(current_bodypart) || isnull(current_bodypart.owner)) return var/mob/living/carbon/human/victim = current_bodypart.owner - if(prob(SPT_PROB(3, SSMOBS_DT))) + if(SPT_PROB(3, SSMOBS_DT)) to_chat(victim, span_warning("The thing posing as your limb makes you feel funny...")) //warn em //firstly as a sideeffect we drain nutrition from our host victim.adjust_nutrition(-1.5) - if(!prob(SPT_PROB(1.5, SSMOBS_DT))) + if(!SPT_PROB(1.5, SSMOBS_DT)) return if(istype(current_bodypart, /obj/item/bodypart/arm))