homing projectiles + wizard spell (#21752)

This commit is contained in:
Charlie
2023-07-24 15:52:17 +01:00
committed by GitHub
parent 907ee1abd1
commit 5ccd8241c4
6 changed files with 70 additions and 1 deletions

View File

@@ -578,7 +578,6 @@ emp_act
if(((throwingdatum ? throwingdatum.speed : I.throw_speed) >= EMBED_THROWSPEED_THRESHOLD) || I.embedded_ignore_throwspeed_threshold)
if(can_embed(I))
if(prob(I.embed_chance) && !HAS_TRAIT(src, TRAIT_PIERCEIMMUNE))
throw_alert("embeddedobject", /obj/screen/alert/embeddedobject)
var/obj/item/organ/external/L = pick(bodyparts)
L.add_embedded_object(I)
I.add_mob_blood(src)//it embedded itself in you, of course it's bloody!