Skip to content

Commit

Permalink
[MIRROR] fixes extra prob() in living flesh Life proc (#2249)
Browse files Browse the repository at this point in the history
* 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
tgstation/tgstation@913802c
in this pr tgstation/tgstation#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 <[email protected]>
Co-authored-by: Rerik007 <[email protected]>
  • Loading branch information
3 people authored Mar 6, 2024
1 parent 5f2baa2 commit 81c478d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/modules/mob/living/basic/ruin_defender/flesh.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 81c478d

Please sign in to comment.