Files
Bubberstation/code/modules/projectiles/projectile/bullets/dnainjector.dm
SkyratBot 17e4f6ad76 [MIRROR] Converts SFX keys into DEFINES [MDB IGNORE] (#11990)
* 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>
2022-03-11 16:43:39 -07:00

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 ..()