Files
Bubberstation/code/modules/projectiles/projectile/bullets/dnainjector.dm
SkyratBot 7d1d0e1fad [MIRROR] Refactors most spans into span procs (#6315)
* Refactors most spans into span procs

* AA

* a

* AAAAAAAAAAAAAAAAAAAAAA

* Update species.dm

Co-authored-by: Watermelon914 <37270891+Watermelon914@users.noreply.github.com>
Co-authored-by: Gandalf <jzo123@hotmail.com>
2021-06-16 00:24:49 +01:00

27 lines
750 B
Plaintext

/obj/projectile/bullet/dnainjector
name = "\improper DNA injector"
icon_state = "syringeproj"
var/obj/item/dnainjector/injector
damage = 5
hitsound_wall = "shatter"
embedding = null
shrapnel_type = null
/obj/projectile/bullet/dnainjector/on_hit(atom/target, blocked = FALSE)
if(iscarbon(target))
var/mob/living/carbon/M = target
if(blocked != 100)
if(M.can_inject(target_zone = def_zone))
if(injector.inject(M, firer))
QDEL_NULL(injector)
return BULLET_ACT_HIT
else
blocked = 100
target.visible_message(span_danger("\The [src] is deflected!"), \
span_userdanger("You are protected against \the [src]!"))
return ..()
/obj/projectile/bullet/dnainjector/Destroy()
QDEL_NULL(injector)
return ..()