mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-04 14:01:22 +00:00
About The Pull Request Simply converts all instances of soundkeys that use get_sfx from strings into defines. E.g. "sparks" is now SFX_SPARKS Why It's Good For The Game It makes life a lot easier when you're looking for a sound effect. You just type SFX_ and you get suggestions in VSC. Plus, it looks better. image Changelog Not player facing.
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 ..()
|