Hopefully fixes stinging fruit issue with prosthetics.

This commit is contained in:
MistakeNot4892
2021-02-18 22:32:26 +11:00
parent 7e32d796b5
commit 3d9bca35d9
+4 -2
View File
@@ -169,9 +169,11 @@
if(!body_coverage)
return
if (fruit)
var/obj/item/organ/external/E = target.get_organ(target.hand ? BP_L_HAND : BP_R_HAND)
if(istype(E) && E.robotic < ORGAN_ROBOT && fruit)
var/injecting = min(5,max(1,get_trait(TRAIT_POTENCY)/5))
to_chat(target, "<span class='danger'>You are stung by \the [fruit]!</span>")
to_chat(target, SPAN_DANGER("You are stung by \the [fruit]!"))
for(var/chem in chems)
target.reagents.add_reagent(chem,injecting)
if (fruit.reagents)