mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-26 01:22:03 +00:00
* Converts SFX keys into DEFINES * fixes and updates Co-authored-by: Gandalf <9026500+Gandalf2k15@users.noreply.github.com> Co-authored-by: John Doe <gamingskeleton3@gmail.com>
27 lines
752 B
Plaintext
27 lines
752 B
Plaintext
/obj/projectile/bullet/dnainjector
|
|
name = "\improper DNA injector"
|
|
icon_state = "syringeproj"
|
|
var/obj/item/dnainjector/injector
|
|
damage = 5
|
|
hitsound_wall = SFX_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 ..()
|